/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    min-height: 100vh;
    font-weight: 400;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 5rem;
}

.logo {
    margin-bottom: 2rem;
    display: inline-block;
}

.logo svg {
    transition: transform 0.2s ease;
}

.logo svg:hover {
    transform: scale(1.02);
}

.title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main content */
.main {
    flex: 1;
}

.content {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-entry {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: none;
    margin-bottom: 0;
}

.blog-entry:hover {
    box-shadow: none;
    transform: none;
}

.entry-date {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.blog-entry h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.blog-entry p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #e5e5e5;
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
    }
    
    .header {
        margin-bottom: 4rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .content {
        gap: 2.5rem;
    }
    
    .blog-entry h2 {
        font-size: 1.3rem;
    }
    
    .blog-entry p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .logo svg {
        width: 50px;
        height: 50px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .info-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .info-card:nth-child(1) { animation-delay: 0.1s; }
    .info-card:nth-child(2) { animation-delay: 0.2s; }
    .info-card:nth-child(3) { animation-delay: 0.3s; }
    .info-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game Styles */
.game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.game-board {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.game-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.game-cell {
    width: 60px;
    height: 60px;
    border: 2px solid #d3d6da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.game-cell.correct {
    background: #6aaa64;
    border-color: #6aaa64;
    color: white;
}

.game-cell.present {
    background: #c9b458;
    border-color: #c9b458;
    color: white;
}

.game-cell.absent {
    background: #787c7e;
    border-color: #787c7e;
    color: white;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.keyboard-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.keyboard-key {
    padding: 1rem 0.5rem;
    background: #d3d6da;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.keyboard-key:hover {
    background: #b3b6ba;
}

.keyboard-key.special-key {
    min-width: 60px;
    font-size: 0.8rem;
}

.keyboard-key.correct {
    background: #6aaa64;
    color: white;
}

.keyboard-key.present {
    background: #c9b458;
    color: white;
}

.keyboard-key.absent {
    background: #787c7e;
    color: white;
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.new-game-btn {
    padding: 0.75rem 1.5rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.new-game-btn:hover {
    background: #333;
}

.game-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.stat {
    font-weight: 500;
}

.stat span {
    color: #1a1a1a;
    font-weight: 600;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.celebration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.six-seven-gesture {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hand-gesture {
    display: flex;
    justify-content: center;
    align-items: center;
}

.six-seven-gif {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gesture-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.1em;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.modal-content p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin: 0.5rem 0;
}

.modal-subtitle {
    font-style: italic;
    color: #666;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 0.5rem;
}

.modal-btn:hover {
    background: #333;
}

.modal-btn.secondary {
    background: #e5e5e5;
    color: #1a1a1a;
}

.modal-btn.secondary:hover {
    background: #d3d6da;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Connections Game Styles */
.connections-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0;
}

.mistakes {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.mistakes span {
    color: #d32f2f;
    font-weight: 600;
}

.shuffle-btn {
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.shuffle-btn:hover {
    background: #333;
}

.connections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.connection-word {
    padding: 1rem;
    background: #f5f5dc;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.connection-word:hover {
    background: #e8e8e8;
}

.connection-word.selected {
    background: #d1ecf1;
    color: #1a1a1a;
}

.connection-word.completed {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
    cursor: default;
}

.connection-word.wrong {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.selected-words {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.selected-count {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #333;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.completed-categories {
    margin-bottom: 2rem;
}

.completed-category-section {
    margin-bottom: 0.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    animation: slideUp 0.5s ease-out;
}

.completed-category-section.yellow {
    background: #f9df6d;
}

.completed-category-section.green {
    background: #a0c35a;
}

.completed-category-section.blue {
    background: #b0c4ef;
}

.completed-category-section.purple {
    background: #ba81c5;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0rem;
    margin-bottom: 0.75rem;
}

.category-color {
    display: none;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.category-words-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.contact-gif {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .contact-gif {
        max-width: 300px;
    }
    
    /* Se7erdle Mobile */
    .game-cell {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .keyboard-key {
        padding: 0.75rem 0.3rem;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    .keyboard-key.special-key {
        min-width: 50px;
        font-size: 0.7rem;
    }
    
    /* Sixections Mobile */
    .connections-grid {
        gap: 0.5rem;
    }
    
    .connection-word {
        padding: 0.75rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .selected-words {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Navigation Mobile */
    .navigation {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    /* Se7erdle Mobile */
    .game-cell {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .game-board {
        gap: 0.4rem;
    }
    
    .game-row {
        gap: 0.4rem;
    }
    
    .keyboard-key {
        padding: 0.6rem 0.2rem;
        min-width: 25px;
        font-size: 0.7rem;
    }
    
    .keyboard-key.special-key {
        min-width: 40px;
        font-size: 0.65rem;
    }
    
    /* Sixections Mobile */
    .connection-word {
        padding: 0.6rem;
        font-size: 0.75rem;
        min-height: 35px;
    }
    
    .connections-grid {
        gap: 0.4rem;
    }
    
    .completed-category-section {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 0.9rem;
    }
    
    .category-words-text {
        font-size: 0.85rem;
    }
}

