/* About Page Specific Styles */
/* Inspired by writeSmarter app instruction design */

/* ================================
   Policy Buttons Bar Styles
   ================================ */

.policy-buttons-bar {
    background-color: transparent;
    border-bottom: none;
    padding: 0.75rem 0;
}

.policy-btn {
    background: linear-gradient(135deg, #0054a6 0%, #003d7a 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.policy-btn:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.policy-btn svg {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Blue variant button for Terms */
.policy-btn:nth-child(2) {
    background: linear-gradient(135deg, #0066cc 0%, #0054a6 100%);
}

/* ================================
   Hovering Board Styles
   ================================ */

.hovering-board {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.board-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 64rem;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.board-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.board-header.privacy {
    background: linear-gradient(135deg, #0054a6 0%, #003d7a 100%);
}

.board-header.terms {
    background: linear-gradient(135deg, #0066cc 0%, #0054a6 100%);
}

.board-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin: 0;
}

.board-header svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.close-board-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.close-board-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.board-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* ================================
   WriteSmarter-Inspired Instruction Styles
   ================================ */

.settings-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.settings-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-item > label {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    line-height: 1.4;
}

.instructions-content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.instructions-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.instructions-content p:last-child {
    margin-bottom: 0;
}

.instructions-content > p:first-child,
.instructions-content > p:nth-child(2) {
    font-size: 1.1rem;
    font-weight: 500;
}

.instructions-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.instructions-content ul,
.instructions-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.instructions-content ul li,
.instructions-list li,
.instructions-list div {
    margin-bottom: 0.75rem;
    padding-left: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.instructions-list li:last-child,
.instructions-list div:last-child {
    margin-bottom: 0;
}

.instructions-content strong {
    color: #374151;
    font-weight: 600;
}

.instructions-content a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.instructions-content a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* ================================
   Mobile Responsiveness
   ================================ */

@media (max-width: 480px) {
    .policy-buttons-bar .flex {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .policy-btn {
        width: 100%;
        max-width: 12.5rem;
        justify-content: center;
    }
    
    .board-content {
        margin: 0.5rem;
        max-height: 90vh;
    }
    
    .board-header {
        padding: 0.75rem;
    }
    
    .board-header h3 {
        font-size: 1rem;
    }
    
    .board-body {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .settings-item > label {
        font-size: 1.125rem;
    }
    
    .instructions-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .board-content {
        max-width: 56rem;
        max-height: 90vh;
    }
}

@media (max-width: 640px) {
    .hovering-board {
        padding: 0.5rem;
    }
    
    .board-content {
        max-width: 90vw;
        max-height: 90vh;
    }
}

/* ================================
   Dark Theme Support
   ================================ */

.dark .policy-buttons-bar {
    background-color: transparent;
    border-bottom: none;
}

.dark .board-content {
    background-color: #1f2937;
    color: #f3f4f6;
}

.dark .settings-item {
    border-bottom-color: #374151;
}

.dark .settings-item > label {
    color: #f3f4f6;
}

.dark .instructions-content {
    color: #d1d5db;
}

.dark .instructions-content h4 {
    color: #f3f4f6;
}

.dark .instructions-content strong {
    color: #f3f4f6;
}

.dark .instructions-content a {
    color: #8b5cf6;
}

.dark .instructions-content a:hover {
    color: #a78bfa;
}

/* ================================
   Animation States
   ================================ */

.board-content.show {
    transform: scale(1);
    opacity: 1;
}

.hovering-board.hidden {
    display: none;
}

/* ================================
   Accessibility Improvements
   ================================ */

.policy-btn:focus,
.close-board-btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.board-body::-webkit-scrollbar {
    width: 0.5rem;
}

.board-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0.25rem;
}

.board-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0.25rem;
}

.board-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark .board-body::-webkit-scrollbar-track {
    background: #374151;
}

.dark .board-body::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark .board-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ================================
   Utility Classes
   ================================ */

.z-60 {
    z-index: 60;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Prevent body scroll when modal is open */
.modal-open {
    overflow: hidden;
}

/* ================================
   Language Toggle Flag Styles
   ================================ */

#language-flag,
#language-flag-mobile {
    width: 1.5rem;
    height: 1rem;
    object-fit: cover;
    border-radius: 0.125rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

#language-toggle:hover #language-flag,
#language-toggle-mobile:hover #language-flag-mobile {
    transform: scale(1.05);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
}

#language-toggle:focus #language-flag,
#language-toggle-mobile:focus #language-flag-mobile {
    transform: scale(1.05);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
}

/* Mobile flag alignment */
#language-flag-mobile {
    margin-left: auto;
} 