/**
 * Shabdly Global Styles
 * Common styles for all pages
 */

/* ============================================
   BREADCRUMB STYLES
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* ============================================
   NAVIGATION BUTTON STYLES
   ============================================ */
.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.nav-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-btn.primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.nav-btn.primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.nav-btn i {
    font-size: 0.875rem;
}

/* ============================================
   LOGO STYLES
   ============================================ */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 35px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   PAGE HEADER STYLES
   ============================================ */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* ============================================
   CONTENT CARD STYLES
   ============================================ */
.content-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-btn {
        justify-content: center;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #goToTopBtn,
    nav,
    footer,
    .nav-buttons,
    .breadcrumb {
        display: none !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ============================================
   MOBILE MENU STYLES
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #2563eb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
