/* Enhanced styles for Family IT Guy website */

/* Video Cards */
.video-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.enhanced-video-card {
    border-left: 4px solid var(--it-gold);
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
}

.video-topic {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--pale-blue-light);
    color: var(--cool-slate);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Hero Video */
.hero-video {
    flex: 0 0 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.video-caption {
    margin-top: var(--space-sm);
    color: var(--medium-gray);
    font-size: 0.875rem;
    text-align: center;
}

/* === Resource Downloads Section Styling === */
.resources-highlight-grid {
    margin-top: 2rem;
}

/* Resource card effects for downloadable resources section */
.resources-highlight-grid .resource-highlight-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.resources-highlight-grid .resource-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Add subtle gradient overlay to resource cards */
.resources-highlight-grid .resource-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 50%);
    z-index: -1;
    pointer-events: none;
}

/* Style resource icons with subtle shadow */
.resources-highlight-grid .resource-highlight-icon {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.resources-highlight-grid .resource-highlight-card:hover .resource-highlight-icon {
    transform: scale(1.1);
}

/* Enhanced icon styles by category */
.resources-highlight-grid .resource-highlight-card.online-safety .resource-highlight-icon {
    background: linear-gradient(135deg, var(--warm-red-light) 0%, #ff4b59 100%);
}

.resources-highlight-grid .resource-highlight-card.screen-time .resource-highlight-icon {
    background: linear-gradient(135deg, var(--pale-blue-light) 0%, #a0cfd3 100%);
}

.resources-highlight-grid .resource-highlight-card.social-media .resource-highlight-icon {
    background: linear-gradient(135deg, var(--it-gold-light) 0%, #ffb520 100%);
}

.resources-highlight-grid .resource-highlight-card.privacy .resource-highlight-icon {
    background: linear-gradient(135deg, var(--cool-slate-light) 0%, #15191f 100%);
}

/* Resource link animation */
.resources-highlight-grid .resource-highlight-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

.resources-highlight-grid .resource-highlight-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

.resources-highlight-grid .resource-highlight-card.online-safety .resource-highlight-link::after {
    background-color: var(--warm-red);
}

.resources-highlight-grid .resource-highlight-card.screen-time .resource-highlight-link::after {
    background-color: var(--pale-blue);
}

.resources-highlight-grid .resource-highlight-card.social-media .resource-highlight-link::after {
    background-color: var(--it-gold);
}

.resources-highlight-grid .resource-highlight-card.privacy .resource-highlight-link::after {
    background-color: var(--cool-slate);
}

.resources-highlight-grid .resource-highlight-card:hover .resource-highlight-link::after {
    width: 100%;
}

/* Animate the chevron icon on hover */
.resources-highlight-grid .resource-highlight-link i {
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.resources-highlight-grid .resource-highlight-card:hover .resource-highlight-link i {
    transform: translateX(4px);
}

/* Resource-specific styling for card borders */
.resources-highlight-grid .resource-highlight-card.online-safety {
    border-left: 4px solid var(--warm-red);
    border-top: 1px solid rgba(238, 39, 55, 0.2);
    border-right: 1px solid rgba(238, 39, 55, 0.2);
    border-bottom: 1px solid rgba(238, 39, 55, 0.2);
}

.resources-highlight-grid .resource-highlight-card.screen-time {
    border-left: 4px solid var(--pale-blue);
    border-top: 1px solid rgba(184, 221, 225, 0.4);
    border-right: 1px solid rgba(184, 221, 225, 0.4);
    border-bottom: 1px solid rgba(184, 221, 225, 0.4);
}

.resources-highlight-grid .resource-highlight-card.social-media {
    border-left: 4px solid var(--it-gold);
    border-top: 1px solid rgba(255, 191, 63, 0.3);
    border-right: 1px solid rgba(255, 191, 63, 0.3);
    border-bottom: 1px solid rgba(255, 191, 63, 0.3);
}

.resources-highlight-grid .resource-highlight-card.privacy {
    border-left: 4px solid var(--cool-slate);
    border-top: 1px solid rgba(29, 37, 45, 0.2);
    border-right: 1px solid rgba(29, 37, 45, 0.2);
    border-bottom: 1px solid rgba(29, 37, 45, 0.2);
}

/* View All Resources button styling */
.resource-downloads-section .text-center .btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(238, 39, 55, 0.2);
}

.resource-downloads-section .text-center .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(238, 39, 55, 0.3);
}

.resource-downloads-section .text-center .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}

.resource-downloads-section .text-center .btn-primary:hover::after {
    transform: rotate(30deg) translate(-10%, -10%);
}

/* Background pattern effect for resource section */
.resource-downloads-section {
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    padding: var(--space-xxl) 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.resource-downloads-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(238, 39, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(184, 221, 225, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 191, 63, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero-video {
        order: -1;
        width: 100%;
        flex: initial;
    }
    
    .video-wrapper {
        margin: 0 auto;
        max-width: 560px;
    }
    
    .resources-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-highlight-grid .resource-highlight-icon {
        width: 40px;
        height: 40px;
    }
    
    .resources-highlight-grid .resource-highlight-icon i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .video-wrapper {
        padding-top: 56.25%; /* Maintain 16:9 ratio on mobile */
    }
    
    .resources-highlight-grid {
        grid-template-columns: 1fr;
    }
}

/* Text alignment utility */
.text-center {
    text-align: center;
}

/* 
* ARTICLE CARDS
* Styles for article cards on homepage and learn-the-risks page
*/

.articles-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-card:hover .article-title {
    color: var(--warm-red);
}

/* Category-specific styling */
.article-card[data-category="online-safety"],
.article-card.online-safety {
    border-top-color: var(--warm-red);
}

.article-card[data-category="social-media"],
.article-card.social-media {
    border-top-color: var(--it-gold);
}

.article-card[data-category="screen-time"],
.article-card.screen-time {
    border-top-color: var(--pale-blue);
}

.article-card[data-category="privacy"],
.article-card.privacy {
    border-top-color: var(--cool-slate);
}

.article-image {
    height: 180px;
    background-color: var(--pale-blue-light);
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-online-safety {
    background-color: rgba(238, 39, 55, 0.15);
    color: var(--warm-red);
}

.tag-social-media {
    background-color: var(--it-gold-light);
    color: var(--cool-slate);
}

.tag-screen-time {
    background-color: var(--pale-blue-light);
    color: var(--cool-slate);
}

.tag-privacy {
    background-color: rgba(29, 37, 45, 0.1);
    color: var(--cool-slate);
}

.article-title {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    color: var(--cool-slate);
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.article-excerpt {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.article-meta {
    margin-top: auto;
    padding-top: var(--space-md);
    display: flex;
    align-items: center;
    color: var(--medium-gray);
    font-size: 0.75rem;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date i {
    font-size: 0.875rem;
    margin-right: 4px;
}

.article-read-time {
    display: flex;
    align-items: center;
    margin-left: var(--space-md);
}

.article-read-time i {
    font-size: 0.875rem;
    margin-right: 4px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .articles-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .articles-highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-content {
        padding: var(--space-md);
    }
    
    .article-title {
        font-size: 1.1rem;
    }
}

/* 
* CONNECT SECTION
* Styles for Connect With Me section on homepage
*/

.contact-events-section {
    padding: var(--space-xxl) 0;
    background-color: var(--light-gray);
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.connect-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.connect-card-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.connect-card h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.connect-events-list {
    padding-left: var(--space-lg); 
    margin-bottom: var(--space-lg);
    list-style-type: disc;
}

.connect-events-list li {
    margin-bottom: var(--space-md);
}

.connect-events-list li:last-child {
    margin-bottom: 0;
}

.connect-actions {
    margin-top: auto;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Media highlight styles */
.media-highlight {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.media-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    min-height: 200px;
}

.media-highlight-sidebar {
    background: linear-gradient(135deg, #FF0000 0%, #282828 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.media-channel-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
}

.media-channel-name {
    color: var(--white);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.media-content {
    padding: var(--space-xl);
}

.media-content h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
}

.media-content p {
    margin-bottom: var(--space-lg);
}

/* Responsive styles */
@media (max-width: 992px) {
    .connect-grid {
        gap: var(--space-lg);
    }
    
    .media-highlight-grid {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 768px) {
    .connect-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .connect-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .connect-actions .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: var(--space-sm);
    }
    
    .media-highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .media-highlight-sidebar {
        padding: var(--space-md);
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .media-channel-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: var(--space-md);
    }
    
    .media-content {
        padding: var(--space-md);
    }
    
    .media-content h3 {
        font-size: 1.2rem;
    }
}
