/* Florida State Tribune Custom Styles */

:root {
    --florida-orange: #ff6b35;
    --florida-blue: #00bcd4;
    --florida-green: #4caf50;
    --florida-gold: #ffb300;
    --florida-coral: #ff5722;
    --florida-teal: #00897b;
    --florida-purple: #7e57c2;
    --sunset-pink: #ff7043;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --border-light: #e9ecef;
    --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    --gradient-green: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    --gradient-sunset: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
    --gradient-gold: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f9fa;
}

/* Header Styles */
.sticky-top {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: var(--gradient-primary) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

marquee {
    padding: 0;
    font-size: 0.9rem;
    background: var(--gradient-sunset) !important;
    color: white !important;
}

/* Post Cards */
.post-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-left: 4px solid var(--florida-orange);
    background: white;
    border-radius: 12px;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.post-image {
    object-fit: cover;
    max-height: 200px;
    width: 100%;
}

.object-cover {
    object-fit: cover;
}

/* Badges and Tags */
.tag-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tag-cloud a {
    display: inline-block;
    margin: 0.2rem;
    transition: all 0.2s ease;
}

.tag-cloud a:hover {
    transform: scale(1.05);
}

/* Sidebar Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-header {
    font-weight: bold;
    border-bottom: none;
    background: var(--gradient-primary) !important;
    color: white !important;
}

.border-warning .card-header {
    background: var(--gradient-orange) !important;
}

.border-success .card-header {
    background: var(--gradient-green) !important;
}

.border-primary .card-header {
    background: var(--gradient-primary) !important;
}

/* Newsletter Form */
.newsletter-form input {
    border-radius: 0.375rem 0 0 0.375rem;
}

.newsletter-form button {
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: none;
}

/* Ad Container */
.ad-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px dashed #dee2e6;
}

/* Footer */
body footer,
footer.py-5.mt-5,
footer {
    background: linear-gradient(135deg, #00897b 0%, #7e57c2 100%) !important;
    background-color: #00897b !important;
    color: #ffffff !important;
}

footer h5, 
footer h6 {
    color: #ffffff !important;
}

footer p, 
footer small,
footer .text-muted {
    color: #e8f4f8 !important;
}

footer a {
    color: #ffb300 !important;
}

footer a:hover {
    color: #ff7043 !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff7043 !important;
    transform: translateY(-2px);
}

/* Affiliate Products */
.affiliate-product {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.affiliate-product:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.affiliate-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Video Embeds */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Post Meta */
.post-meta a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: var(--florida-orange) !important;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-warning {
    background: var(--gradient-orange);
    border: none;
    color: white;
}

.btn-success {
    background: var(--gradient-green);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--florida-coral) 0%, #d32f2f 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--florida-blue);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background: var(--gradient-orange);
    border-color: var(--florida-orange);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--florida-blue);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-card .row > div {
        margin-bottom: 1rem;
    }
    
    .post-image {
        max-height: 150px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
    
    marquee {
        font-size: 0.8rem;
    }
    
    .social-links a {
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--florida-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge Improvements */
.badge {
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    font-weight: 500;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--florida-coral) 0%, #d32f2f 100%) !important;
}

.badge.bg-warning {
    background: var(--gradient-orange) !important;
    color: white !important;
}

.badge.bg-success {
    background: var(--gradient-green) !important;
}

/* Alert Improvements */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #1b5e20;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

/* Utility Classes */
.text-florida-orange {
    color: var(--florida-orange) !important;
}

.bg-florida-orange {
    background-color: var(--florida-orange) !important;
}

.border-florida-orange {
    border-color: var(--florida-orange) !important;
}

.shadow-lg-custom {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Print Styles */
@media print {
    .no-print,
    .navbar,
    .sidebar,
    .ad-container,
    .btn,
    .pagination {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* FORCE FOOTER COLORS - Must be last */
html body footer,
html body footer.py-5,
html body footer.mt-5,
html body footer.py-5.mt-5 {
    background: linear-gradient(135deg, #00897b 0%, #7e57c2 100%) !important;
    background-color: #7e57c2 !important;
}

html body footer * {
    color: #ffffff !important;
}

html body footer a {
    color: #ffb300 !important;
}

html body footer a:hover {
    color: #ff7043 !important;
}

html body footer p,
html body footer small {
    color: #e8f4f8 !important;
}