/*
Theme Name: Dev Quiz Custom Theme
Theme URI: https://example.com
Author: Custom Developer
Author URI: https://example.com
Description: A custom WordPress theme built from XD design specifications
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devquiz
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* Header Styles */
.site-header {
    background: #1a1a1a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.site-logo {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(200, 200, 200, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    display: flex;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-overlay-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.nav-overlay-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.nav-overlay-right {
    width: 400px;
    background: #fff;
    padding: 120px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-menu li {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.overlay-menu li:last-child {
    border-bottom: none;
}

.overlay-menu a {
    font-size: 28px;
    color: #999;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s;
}

.overlay-menu a:hover {
    color: #333;
}

/* Hero Section */
.hero-section {
    background: #e0e0e0;
    padding: 120px 40px;
    text-align: center;
}

.hero-section .hero-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 16px;
}

.hero-section .hero-title {
    font-size: 48px;
    font-weight: 300;
    color: #666;
    margin-bottom: 32px;
}

.hero-section .hero-content {
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
    color: #888;
}

/* Content Blocks */
.content-block {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 40px;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.content-block-image {
    flex: 1;
    background: #999;
    min-height: 300px;
}

.content-block-text {
    flex: 1;
}

.content-block-text .block-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 12px;
}

.content-block-text .block-title {
    font-size: 32px;
    font-weight: 300;
    color: #666;
    margin-bottom: 20px;
}

.content-block-text .block-content {
    font-size: 14px;
    line-height: 1.8;
    color: #888;
    margin-bottom: 24px;
}

.btn-link {
    display: inline-block;
    padding: 10px 28px;
    background: #999;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-link:hover {
    background: #777;
}

/* Card Grid Section */
.card-grid-section {
    background: #e8e8e8;
    padding: 80px 40px;
}

.card-grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.card-grid-dropdown {
    display: inline-block;
    padding: 12px 60px 12px 24px;
    border: 1px solid #ccc;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9L1 4h10z"/></svg>') no-repeat right 20px center;
    background-size: 12px;
    font-size: 14px;
    color: #666;
    appearance: none;
    cursor: pointer;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.card-grid.masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(100px, auto);
}

.card-item {
    background: #999;
    padding: 32px;
    color: #fff;
}

.card-item.large {
    grid-row: span 2;
}

.card-item.medium {
    grid-row: span 1;
}

.card-item .card-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

.card-item .card-text {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.9;
}

/* Bottom Card Row */
.bottom-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px 80px;
}

.card-with-link {
    background: #888;
    padding: 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.card-with-link .card-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

.card-with-link .card-text {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: auto;
    padding-bottom: 24px;
}

.card-with-link .card-link {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border-radius: 4px;
    align-self: flex-start;
}

/* Geometric Pattern Section */
.pattern-section {
    padding: 80px 40px;
}

.geometric-pattern {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 80px);
    gap: 0;
}

.pattern-block {
    background: #ddd;
}

.pattern-block.dark {
    background: #999;
}

.pattern-block.darker {
    background: #777;
}

/* Responsive */
@media (max-width: 968px) {
    .content-block {
        flex-direction: column;
        gap: 40px;
    }
    
    .content-block.reverse {
        flex-direction: column;
    }
    
    .card-grid,
    .card-grid.masonry,
    .bottom-card-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 20px 24px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 60px 24px;
    }
    
    .hero-section .hero-title {
        font-size: 32px;
    }
    
    .content-block {
        padding: 40px 24px;
    }
    
    .card-grid,
    .card-grid.masonry,
    .bottom-card-row {
        grid-template-columns: 1fr;
    }
    
    .card-grid-section,
    .pattern-section {
        padding: 40px 24px;
    }
    
    .nav-overlay-content {
        flex-direction: column;
    }
    
    .nav-overlay-right {
        width: 100%;
        padding: 80px 40px;
    }
    
    .overlay-menu a {
        font-size: 24px;
    }
}

@media (min-width: 641px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Ensure body doesn't scroll when menu is open */
body.menu-open {
    overflow: hidden;
}