/* ============================================
   UFMedia - Custom Styles
   ============================================ */

/* Variables */
:root {
    --primary-color: #0d6efd;
    --dark-bg: #0a0e17;
    --card-bg: #141b2d;
    --text-light: #e8edf5;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Top Bar */
.top-bar {
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .social-links a {
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(13, 110, 253, 0.1);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(13, 110, 253, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d1b33 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(13, 110, 253, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* Component Cards */
.component-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
    height: 100%;
    cursor: pointer;
}

.component-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.component-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

/* Blog Cards */
.blog-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 15px;
    font-weight: 500;
}

.blog-content {
    padding: 1.25rem;
}

/* Caption Cards */
.caption-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
}

.caption-card .blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
}

/* Advertisement Banner */
.ad-banner {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

/* Footer */
.footer {
    background: #060a12;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .social-links a {
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Form Controls */
.form-control {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 18px;
}

.form-control:focus {
    background: var(--dark-bg);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Utility Classes */
.min-vh-50 {
    min-height: 50vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .component-card {
        margin-bottom: 1rem;
    }
    
    .caption-card {
        padding: 1.5rem;
    }
}