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

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #052952 0%, #1798e7 50%, #4fc3f7 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-weight: 400;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="40" r="0.8" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="80" r="1.2" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 41, 82, 0.1);
    position: sticky;
    top: 0;
    padding: 1.05rem 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(5, 41, 82, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 90px;
    width: auto;
}

.hero-content-header {
    flex: 1;
    text-align: center;
    margin: 0 1rem;
}

.hero-content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #052952 0%, #1798e7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.hero-content-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons button,
.user-info button {
    background: linear-gradient(135deg, #052952 0%, #1798e7 50%, #4fc3f7 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(5, 41, 82, 0.2);
    backdrop-filter: blur(10px);
}

.auth-buttons button::before,
.user-info button::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: left 0.5s ease;
}

.auth-buttons button:hover,
.user-info button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(5, 41, 82, 0.3);
    background-position: 100% 0;
}

.auth-buttons button:hover::before,
.user-info button:hover::before {
    left: 100%;
}

/* More Parameters Calculator Styles */
.calc-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-section h3 {
    color: #052952;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.pool-shape-selector {
    margin-bottom: 1rem;
}

.pool-shape-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: #052952;
    font-weight: 500;
}

.shape-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shape-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e7ff;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #052952;
}

.shape-btn:hover {
    border-color: #1798e7;
    background: rgba(23, 152, 231, 0.05);
}

.shape-btn.active {
    background: linear-gradient(135deg, #052952 0%, #1798e7 100%);
    color: white;
    border-color: #1798e7;
}

.shape-inputs {
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #052952;
    font-weight: 500;
    font-size: 0.9rem;
}

.reference {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.user-info {
    color: #052952;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 600;
    color: #052952;
}

/* Main Content */
main {
    margin-top: 2rem;
}

/* Cards Grid */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Calculator Card Styles */
.calculator-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(5, 41, 82, 0.12), 0 4px 16px rgba(5, 41, 82, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #052952, #1798e7, #4fc3f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(5, 41, 82, 0.2), 0 8px 24px rgba(5, 41, 82, 0.12);
}

.calculator-card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, #052952 0%, #1798e7 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 41, 82, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(5, 41, 82, 0.3);
    border: 1px solid rgba(23, 152, 231, 0.1);
}

.close {
    color: #999;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    transition: color 0.3s ease;
}

.close:hover {
    color: #052952;
}

.modal h2 {
    margin-bottom: 2rem;
    color: #052952;
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal input,
.modal select {
    padding: 1rem;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbff;
}

.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: #1798e7;
    background: white;
    box-shadow: 0 0 0 3px rgba(23, 152, 231, 0.1);
}

.modal button {
    background: linear-gradient(135deg, #052952 0%, #1798e7 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 41, 82, 0.3);
}

.modal p {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.modal a {
    color: #1798e7;
    text-decoration: none;
    font-weight: 500;
}

.modal a:hover {
    text-decoration: underline;
}

/* Form Styles */
.calc-container {
    max-width: 100%;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #052952;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e8f0fe;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(250, 251, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #1798e7;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(23, 152, 231, 0.12), 0 4px 16px rgba(23, 152, 231, 0.1);
    transform: translateY(-2px);
}

.input-group input:hover,
.input-group select:hover {
    border-color: #4fc3f7;
    background: rgba(255, 255, 255, 0.9);
}

.shape-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.chemical-calc {
    background: #f8faff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #e8f0fe;
}

.chemical-calc h3 {
    color: #052952;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.reference {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 1rem 0;
    font-style: italic;
    background: #e8f0fe;
    padding: 0.5rem;
    border-radius: 8px;
}

button {
    background: linear-gradient(135deg, #052952 0%, #1798e7 50%, #4fc3f7 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 1rem 0;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(5, 41, 82, 0.2);
}

button::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: left 0.6s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(5, 41, 82, 0.3);
    background-position: 100% 0;
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 41, 82, 0.25);
}

.result {
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.9), rgba(200, 230, 201, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid #4caf50;
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 600;
    display: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
    animation: slideIn 0.5s ease-out;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
}

.result.error {
    background: linear-gradient(135deg, rgba(255, 234, 234, 0.9), rgba(255, 205, 210, 0.9));
    border-color: #f44336;
    color: #d32f2f;
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.15);
}

.result.error::before {
    background: linear-gradient(90deg, #f44336, #e57373, #ef5350);
}

.result.success {
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.9), rgba(200, 230, 201, 0.9));
    border-color: #4caf50;
    color: #2e7d32;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
}

.result.success::before {
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Styles */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contactForm input,
#contactForm textarea {
    padding: 1rem;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbff;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #1798e7;
    background: white;
    box-shadow: 0 0 0 3px rgba(23, 152, 231, 0.1);
}

#contactForm textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #052952;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(5, 41, 82, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 0.3rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .logo-section {
        flex-shrink: 0;
    }
    
    .logo {
        height: 24px;
    }
    
    .hero-content-header {
        flex: 1;
        margin: 0;
        min-width: 0;
    }
    
    .hero-content-header h1 {
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.1;
    }
    
    .hero-content-header p {
        font-size: 0.6rem;
        margin: 0;
        line-height: 1.2;
    }
    
    .header-nav {
        flex-shrink: 0;
        gap: 0.3rem;
    }
    
    .cards-grid {
        gap: 1.5rem;
    }
    
    .calculator-card {
        margin: 0;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .ch-input-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .ch-input-row .input-with-label:last-child {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
    
    .shape-inputs {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .auth-buttons button,
    .user-info button {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
        border-radius: 15px;
        min-width: auto;
    }
    
    /* Advanced Parameters Mobile Optimization */
    .calc-section {
        margin-bottom: 2rem;
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .calc-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .input-group select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid rgba(5, 41, 82, 0.2);
        border-radius: 8px;
        font-size: 1rem;
        background: white;
    }
    
    .reference {
        font-size: 0.8rem;
        margin: 0.5rem 0;
        padding: 0.5rem;
        background: rgba(23, 152, 231, 0.1);
        border-radius: 6px;
        border-left: 3px solid #1798e7;
    }
    
    .result {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .result.success {
        background: rgba(76, 175, 80, 0.1);
        border: 1px solid rgba(76, 175, 80, 0.3);
        color: #2e7d32;
    }
    
    .result.error {
        background: rgba(244, 67, 54, 0.1);
        border: 1px solid rgba(244, 67, 54, 0.3);
        color: #c62828;
    }
    
    .result.warning {
        background: rgba(255, 152, 0, 0.1);
        border: 1px solid rgba(255, 152, 0, 0.3);
        color: #ef6c00;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .chemical-calc {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    /* Advanced Parameters Small Screen Optimization */
    .calc-section {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .calc-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .input-group {
        margin-bottom: 0.75rem;
    }
    
    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .input-group select,
    .input-group input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .reference {
        font-size: 0.75rem;
        padding: 0.4rem;
        margin: 0.4rem 0;
    }
    
    .result {
        padding: 0.75rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .wiki-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .wiki-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Target Ranges Small Screen Styles */
    .target-ranges {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .target-ranges h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .range-item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.6rem;
        text-align: center;
    }
    
    .range-item .parameter {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .range-item .range {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        padding: 0.2rem 0.4rem;
    }
    
    .range-item .optimal {
        font-size: 0.8rem;
    }
    
    .ranges-note {
        font-size: 0.8rem;
        padding: 0.4rem;
        margin-top: 0.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.shake {
    animation: shake 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 152, 231, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(23, 152, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(23, 152, 231, 0);
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Target Ranges Styles */
.target-ranges {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.target-ranges h3 {
    color: #1e40af;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.ranges-table {
    display: grid;
    gap: 0.75rem;
}

.range-item {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.range-item .parameter {
    font-weight: 600;
    color: #1f2937;
}

.range-item .range {
    font-weight: 500;
    color: #059669;
    text-align: center;
    background: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.range-item .optimal {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.ranges-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #92400e;
    text-align: center;
}

/* Input Label Styles */
.input-with-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.input-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-row .input-with-label {
    flex: 1;
}

/* Wiki Card Styles */
.wiki-card {
    margin-bottom: 2rem;
}

.wiki-button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.wiki-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.wiki-button-link svg {
    transition: transform 0.3s ease;
}

.wiki-button-link:hover svg {
    transform: translateX(2px);
}

/* Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(5, 41, 82, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #052952;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #052952;
}

.footer-bottom {
    border-top: 1px solid rgba(5, 41, 82, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 152, 231, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}