/* LexMart Main Stylesheet */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --muted-color: #6c757d;
    
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-serif: 'Playfair Display', Georgia, serif;
    
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --transition: all 0.15s ease-in-out;
}

/* Global Styles */
body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--dark-color);
}

.fw-bold {
    font-weight: 600 !important;
}

/* Custom Bootstrap Overrides */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border-width: 1px;
}

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

.card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25);
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--warning-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-stats {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Product Cards */
.product-card {
    transition: var(--transition);
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.product-card .card-img-top {
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Forum Cards */
.forum-card {
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.forum-card:hover {
    border-left-color: var(--warning-color);
    background-color: var(--light-color);
}

/* Event Cards */
.event-date {
    min-width: 60px;
    border-radius: var(--border-radius);
}

.event-card {
    border-top: 3px solid var(--success-color);
}

/* Library Cards */
.library-card {
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.library-card:hover {
    border-color: var(--secondary-color);
    background-color: rgba(52, 144, 220, 0.05);
}

/* Content Type Icons */
.content-type-icon i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Statistics */
.stat-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

/* Feature Items */
.feature-item {
    text-align: left;
    padding: 1rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item i {
    transition: var(--transition);
}

.feature-item:hover i {
    transform: scale(1.1);
}

/* Authentication Forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-form .card {
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    background-color: #e9ecef;
    overflow: hidden;
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 100%;
    transition: var(--transition);
}

.password-strength-weak { background-color: var(--danger-color); width: 33%; }
.password-strength-medium { background-color: var(--warning-color); width: 66%; }
.password-strength-strong { background-color: var(--success-color); width: 100%; }

/* Search Results */
.search-result-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: var(--light-color);
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: var(--border-radius);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
}

footer a {
    transition: var(--transition);
    color: #ffffff !important;
}

footer a:hover {
    color: var(--warning-color) !important;
    text-decoration: none !important;
}
footer .text-muted {
    color: #ffffff !important;
}
footer .text-light {
    color: #ffffff !important;
}
footer p,
footer small,
footer li,
footer li a,
footer h5,
footer h6 {
    color: #ffffff !important;
}
footer .list-unstyled a {
    color: #ffffff !important;
}
footer .list-unstyled a:hover {
    color: var(--warning-color) !important;
}
footer a:visited,
footer .list-unstyled a:visited {
    color: #ffffff !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--warning-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.border-start-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-start-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-start-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-start-info {
    border-left: 4px solid var(--info-color) !important;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
