/* ===========================
   GLOBAL STYLES
   =========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* ===========================
   STOCK WIDGET STYLES
   =========================== */
.sidebar-widget iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sidebar-widget iframe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stock-widget-info {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* ===========================
   NAVIGATION STYLES
   =========================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700 !important;
}

.nav-link i {
    margin-right: 0.3rem;
}

/* ===========================
   MAIN CONTENT STYLES
   =========================== */
.main-content {
    min-height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.main-content:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.main-content h1 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2rem;
}

.main-content h3 {
    color: #34495e;
    font-weight: 600;
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* ===========================
   CARD STYLES
   =========================== */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
}

.card-title i {
    margin-right: 0.5rem;
}

/* ===========================
   SIDEBAR STYLES
   =========================== */
.sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.sidebar:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h5 {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-widget h5 i {
    margin-right: 0.5rem;
    color: #007bff;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget li:hover {
    background-color: #f8f9fa;
    padding-left: 0.5rem;
}

.sidebar-widget a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: #007bff;
}

/* ===========================
   POPULAR ARTICLES WIDGET
   =========================== */
.popular-articles .d-flex {
    transition: background-color 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.popular-articles .d-flex:hover {
    background-color: #f8f9fa;
}

.popular-articles img {
    object-fit: cover;
}

.popular-articles h6 a {
    color: #2c3e50;
    font-weight: 500;
}

.popular-articles h6 a:hover {
    color: #007bff;
}

/* ===========================
   TAG CLOUD STYLES
   =========================== */
.tag-cloud .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    transform: scale(1.05);
    text-decoration: none;
}

/* ===========================
   SOCIAL BUTTONS
   =========================== */
.social-buttons .btn {
    transition: all 0.3s ease;
}

.social-buttons .btn:hover {
    transform: translateY(-1px);
}

/* ===========================
   FOOTER STYLES
   =========================== */
footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer h5 {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer h5 i {
    margin-right: 0.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ffd700;
    color: #343a40 !important;
    transform: scale(1.1);
}

/* ===========================
   FORM STYLES
   =========================== */
.form-control {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .main-content h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .sidebar {
        padding: 0.75rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    footer {
        text-align: center;
    }
    
    .social-links {
        margin-top: 1rem;
    }
}

/* ===========================
   ANIMATION CLASSES
   =========================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-gradient {
    background: linear-gradient(45deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,.2) !important;
    transition: box-shadow 0.3s ease;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, #007bff, #28a745) 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}
