/* QuickPaste Main Styles */
:root {
    /* Modern Color Palette */
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-solid: #667eea;
    --primary-hover: #5a67d8;
    --accent: #ff6b6b;
    --accent-hover: #ee5a5a;
    
    /* Backgrounds */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-dark: rgba(26, 26, 46, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --text-light: #ffffff;
    
    /* Status Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);
    --success-border: rgba(34, 197, 94, 0.3);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.15);
    --error-border: rgba(239, 68, 68, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #b693d8 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 92%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-solid);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-solid);
    background: rgba(102, 126, 234, 0.15);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 1001;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-solid);
    transform: translateX(4px);
}

.dropdown-item.signup-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.dropdown-item.signup-item:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b5b95 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.dropdown-divider {
    height: 1px;
    background: rgba(102, 126, 234, 0.2);
    margin: 0.5rem 1rem;
}

/* Get Dropdown Specific Styles */
.get-dropdown .dropdown-menu {
    left: 0;
    right: auto;
    min-width: 180px;
}

/* Share Dropdown Specific Styles */
.share-dropdown .dropdown-menu {
    left: 0;
    right: auto;
    min-width: 120px;
    width: 120px;
}

.get-dropdown .dropdown-item {
    font-size: 0.95rem;
}

.get-dropdown .dropdown-item span {
    font-size: 1rem;
}

/* Active state for dropdown items */
.dropdown-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-solid);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 92%;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(102, 126, 234, 0.1);
}

.content-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.content-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-card h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-card ul, .content-card ol {
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-card li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

textarea.form-control {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-solid);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error-border);
}

/* Auth Forms Specific Styles */
.auth-container {
    max-width: 440px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-height: auto;
}

.auth-card h1 {
    color: var(--primary-solid);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    line-height: 1.2;
}

.social-login {
    margin: 0 0 2rem 0;
}

.social-login p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #4285f4;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    min-height: 48px;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.auth-separator {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    overflow: hidden;
}

.auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    transform: translateY(-50%);
}

.auth-separator span {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-muted);
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.auth-form {
    text-align: left;
    margin-top: 0;
}

.auth-divider {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    margin-top: 2rem;
}

.auth-link {
    color: var(--primary-solid);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .navbar-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        position: relative !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        margin: 0 auto !important;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
    }
    
    .navbar-brand {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    .navbar-nav {
        order: 2 !important;
        position: absolute !important;
    }
    
    .navbar .navbar-container .mobile-menu-toggle {
        display: block !important;
        margin-left: auto !important;
        order: 3 !important;
        position: relative !important;
        right: 0 !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        /* Override home page button styles */
        width: auto !important;
        font-size: 1.5rem !important;
        padding: 0.5rem !important;
        background: none !important;
        border: none !important;
        color: var(--text-secondary) !important;
        cursor: pointer !important;
    }
    
    /* Mobile dropdown styles */
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(102, 126, 234, 0.05);
        margin: 0;
        padding: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .nav-dropdown .dropdown-item {
        padding: 1rem 2rem;
    }
    
    .nav-dropdown .dropdown-divider {
        margin: 0;
    }
    
    .navbar-container {
        position: relative;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Auth Form Mobile Styles */
    .auth-container {
        max-width: 100%;
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: var(--radius-md);
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .social-btn {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 50px;
    }
    
    .auth-separator {
        margin: 1.5rem 0;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
    
    .btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem !important;
    }
    
    /* Small Mobile Auth Styles */
    .auth-container {
        padding: 0 0.25rem;
        margin: 0.5rem auto;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: var(--radius-sm);
    }
    
    .auth-card h1 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .social-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-block {
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .auth-separator span {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    /* Very Small Mobile Devices */
    .auth-card {
        padding: 1.25rem 0.75rem;
    }
    
    .social-btn {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }
    
    .form-control {
        padding: 0.6875rem 0.75rem;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.content-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.content-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 2s;
}

.content-card:nth-child(3) {
    animation: float 6s ease-in-out infinite 4s;
}