* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
}

header {
    background: #2a2a2a;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

.calc-btn {
    background: #ff6b35;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.calc-btn:hover {
    background: #ff8555;
}

main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Styles */
.gallery {
    column-count: 4;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Calculator Styles */
.calculator {
    max-width: 500px;
    margin: 3rem auto;
    background: #2a2a2a;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.calculator h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 2rem;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #ddd;
}

.input-group input {
    padding: 0.75rem;
    font-size: 1.1rem;
    border: 2px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.calc-button {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.calc-button:hover {
    background: #ff8555;
}

.result {
    text-align: center;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 2px solid #ff6b35;
}

.result.hidden {
    display: none;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.kebab-count {
    font-size: 4rem;
    font-weight: 700;
    color: #ff6b35;
}

.kebab-label {
    font-size: 1.5rem;
    color: #ddd;
}

.leftover {
    margin-top: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 2;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calculator {
        margin: 1rem auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }
    
    .kebab-count {
        font-size: 3rem;
    }
}
