/*
Theme Name: Cyber ICT
Description: A modern WordPress theme designed for AI education and tutorials. Features darkish blue color scheme, optimized for affiliate marketing, social media integration, and YouTube content.
Author: Cyber ICT Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: cyber-ict
Tags: education, technology, ai, tutorials, responsive, dark-blue
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --primary-dark-blue: #1a237e;
    --secondary-blue: #283593;
    --accent-blue: #3f51b5;
    --light-blue: #5c6bc0;
    --text-dark: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #0d1421;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3f51b5 100%);
    --gradient-secondary: linear-gradient(135deg, #283593 0%, #5c6bc0 100%);
    --shadow-light: 0 2px 10px rgba(26, 35, 126, 0.1);
    --shadow-medium: 0 4px 20px rgba(26, 35, 126, 0.15);
    --shadow-heavy: 0 8px 30px rgba(26, 35, 126, 0.2);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

/* Layout Structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* Header Styles */
.site-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--text-white);
    text-decoration: none;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: var(--text-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark-blue);
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--text-white);
    text-decoration: none;
}

/* Content Area */
.main-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Post Styles */
.post {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-title {
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: var(--primary-dark-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

/* Footer Styles */
.site-footer {
    background: var(--background-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark-blue);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
}


/* Enhanced AI Education Specific Styles */

/* AI Tool Cards */
.ai-tool-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ai-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.ai-tool-card .tool-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.ai-tool-card .tool-rating {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.ai-tool-card .stars {
    color: #ffc107;
    margin-right: 8px;
}

.ai-tool-card .pricing {
    background: var(--light-blue);
    color: var(--text-white);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
}

.ai-tool-card .free-trial {
    background: var(--success-color);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Tutorial Styles */
.tutorial-difficulty {
    display: inline-flex;
    align-items: center;
    background: var(--background-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.difficulty-beginner {
    background: var(--success-color);
    color: var(--text-white);
}

.difficulty-intermediate {
    background: var(--warning-color);
    color: var(--text-white);
}

.difficulty-advanced {
    background: var(--error-color);
    color: var(--text-white);
}

.tutorial-duration {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.tutorial-duration i {
    margin-right: 5px;
}

/* YouTube Integration Styles */
.youtube-section {
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 20px;
}

.youtube-section h2 {
    color: var(--text-white);
    text-align: center;
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--primary-dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail .play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark-blue);
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Social Media Integration */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
}

.social-share h4 {
    margin: 0;
    color: var(--primary-dark-blue);
}

.social-share-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.instagram { background: #e4405f; }
.social-btn.youtube { background: #ff0000; }

/* Affiliate Marketing Styles */
.affiliate-disclosure {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.affiliate-disclosure::before {
    content: "💡";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ffeaa7;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.affiliate-disclosure h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.affiliate-disclosure p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

.affiliate-cta {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.affiliate-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.affiliate-cta h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.affiliate-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.affiliate-cta .btn {
    background: var(--text-white);
    color: var(--primary-dark-blue);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.affiliate-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Newsletter Signup */
.newsletter-section {
    background: var(--background-dark);
    color: var(--text-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-section h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: var(--accent-blue);
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark-blue);
}

/* AI Agent Spotlight */
.agent-spotlight {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--accent-blue) 100%);
    color: var(--text-white);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.agent-spotlight::before {
    content: "🤖";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.3;
}

.agent-spotlight h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.agent-spotlight .agent-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.agent-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.agent-feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.agent-feature h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.agent-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--background-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    margin-right: 10px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 400px;
    margin: 2rem auto;
}

.search-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-blue);
    color: var(--text-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-dark-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent-blue);
    color: var(--text-white);
    border-color: var(--accent-blue);
}

/* Comments */
.comments-area {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-top: 3rem;
}

.comments-title {
    color: var(--primary-dark-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-blue);
}

.comment {
    padding: 1.5rem;
    border-left: 3px solid var(--accent-blue);
    margin-bottom: 1.5rem;
    background: var(--background-light);
    border-radius: 0 10px 10px 0;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-dark-blue);
    margin-bottom: 0.5rem;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 35, 126, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-dark-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-spotlight .agent-features {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .affiliate-cta {
        padding: 1.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .ai-tool-card .tool-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

