/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    gap: 1.5rem;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Background classes */
.container.light-mode {
    background-image: url("https://allmylinks.s3.amazonaws.com/bg-desktop-light.webp");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.container.dark-mode {
    background-image: url("https://allmylinks.s3.amazonaws.com/bg-desktop.webp");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

/* Mobile backgrounds */
@media (max-width: 640px) {
    .container.light-mode {
        background-image: url("https://allmylinks.s3.amazonaws.com/bg-mobile-light.webp");
    }
    
    .container.dark-mode {
        background-image: url("https://allmylinks.s3.amazonaws.com/bg-mobile.webp");
    }
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.profile-image {
    border-radius: 50%;
    width: 9rem;
    height: 9rem;
    object-fit: cover;
    border: 2px solid;
    transition: all 0.3s ease;
}

.light-mode .profile-image {
    border-color: rgba(0, 0, 0, 0.7);
}

.dark-mode .profile-image {
    border-color: rgba(255, 255, 255, 0.7);
}

.profile-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: -0.5rem;
    transition: color 0.3s ease;
}

.light-mode .profile-name {
    color: black;
}

.dark-mode .profile-name {
    color: white;
}

.profile-username {
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.light-mode .profile-username {
    color: rgba(0, 0, 0, 0.5);
}

.dark-mode .profile-username {
    color: rgba(255, 255, 255, 0.5);
}

.profile-bio {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.light-mode .profile-bio {
    color: rgba(0, 0, 0, 0.7);
}

.dark-mode .profile-bio {
    color: rgba(255, 255, 255, 0.7);
}

/* Theme Toggle */
.theme-toggle-container {
    position: relative;
    margin: 0.25rem;
}

.theme-toggle {
    width: 4rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.light-mode .theme-toggle {
    border-color: rgb(107, 114, 128);
    background: rgba(0, 0, 0, 0.15);
}

.light-mode .theme-toggle:hover {
    border-color: rgb(30, 58, 138);
}

.dark-mode .theme-toggle {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.dark-mode .theme-toggle:hover {
    border-color: rgb(96, 165, 250);
}

.theme-toggle-button {
    width: 2rem;
    height: 2rem;
    position: absolute;
    transition: all 0.3s ease;
    transform: translateY(-50%);
    top: 50%;
    z-index: 10;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.light-mode .theme-toggle-button {
    right: 0;
    background: black;
    color: white;
}

.light-mode .theme-toggle:hover .theme-toggle-button {
    background: rgb(30, 58, 138);
    color: rgb(251, 191, 36);
}

.dark-mode .theme-toggle-button {
    left: 0;
    background: white;
    color: black;
}

.dark-mode .theme-toggle:hover .theme-toggle-button {
    background: rgb(96, 165, 250);
    color: rgb(253, 224, 71);
}

.theme-icon {
    transition: all 0.3s ease;
}

.light-mode .sun-icon {
    display: none;
}

.dark-mode .moon-icon {
    display: none;
}

/* Animation classes for toggle */
.theme-toggle-button.slide-left {
    animation: slideFromRight 0.3s ease forwards;
}

.theme-toggle-button.slide-right {
    animation: slideFromLeft 0.3s ease forwards;
}

@keyframes slideFromLeft {
    0% {
        left: 0;
    }
    100% {
        left: calc(100% - 2rem);
    }
}

@keyframes slideFromRight {
    0% {
        right: 0;
    }
    100% {
        right: calc(100% - 2rem);
    }
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
}

.link-item {
    padding: 0.75rem 2.5rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    border: 2px solid;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
}

.light-mode .link-item {
    background: rgba(0, 0, 0, 0.1);
    color: black;
    border-color: rgba(0, 0, 0, 0.4);
}

.light-mode .link-item:hover {
    border-color: black;
}

.dark-mode .link-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.dark-mode .link-item:hover {
    border-color: white;
}

.link-icon {
    transition: all 0.3s ease;
}

.link-item:hover .link-icon {
    transform: scale(1.1);
}

/* Specific icon hover colors */
.link-item:hover .user-icon {
    color: #8b5cf6;
}

.link-item:hover .github-icon {
    color: #24292e;
}

.link-item:hover .linkedin-icon {
    color: #0e76a8;
}

.link-item:hover .instagram-icon {
    color: #C13584;
}

.link-item:hover .facebook-icon {
    color: #1877F2;
}

.link-item:hover .tiktok-icon {
    color: #FF0050;
}

.link-item:hover .discord-icon {
    color: #5865F2;
}

.link-item:hover .privacy-icon {
    color: #10B981;
}

.link-item:hover .onlyfans-icon {
    color: #00AFF0;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-title {
    font-weight: 600;
    transition: color 0.3s ease;
}

.light-mode .footer-title {
    color: black;
}

.dark-mode .footer-title {
    color: white;
}

.footer-text {
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.light-mode .footer-text {
    color: rgba(0, 0, 0, 0.5);
}

.dark-mode .footer-text {
    color: rgba(255, 255, 255, 0.5);
}

.footer-link {
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.light-mode .footer-link:hover {
    color: black;
}

.dark-mode .footer-link:hover {
    color: white;
}

/* Modal de Conteúdo Adulto */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.dark-mode .modal-content {
    background: #1f2937;
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.dark-mode .modal-header h2 {
    color: #ef4444;
}

.modal-body {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #374151;
}

.dark-mode .modal-body p {
    color: #d1d5db;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.modal-body li {
    padding: 0.5rem 0;
    color: #059669;
    font-weight: 600;
}

.dark-mode .modal-body li {
    color: #10b981;
}

.warning-text {
    color: #dc2626 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    background: #fef2f2;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
}

.dark-mode .warning-text {
    background: #7f1d1d !important;
    border-color: #dc2626 !important;
    color: #fca5a5 !important;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 140px;
}

.cancel-btn {
    background: #ef4444;
    color: white;
}

.cancel-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.confirm-btn {
    background: #059669;
    color: white;
}

.confirm-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .profile-image {
        width: 8rem;
        height: 8rem;
    }
    
    .profile-name {
        font-size: 1.125rem;
    }
    
    .profile-bio {
        font-size: 0.9rem;
    }
    
    .links-section {
        max-width: 100%;
    }
    
    .link-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}
