/* DietaMagazin.hu - Custom Styles */

* {
    scroll-behavior: smooth;
}

/* Calculator form styling */
.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background: #fff;
}
.calc-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

.calc-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    appearance: none;
}
.calc-select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

.calc-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.calc-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #22c55e;
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.calc-btn:hover {
    background: #16a34a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.calc-btn:active {
    transform: scale(0.98);
}

.calc-result {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.calc-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #15803d;
}

.calc-result-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Radio button group */
.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: inline-block;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-option label:hover {
    border-color: #86efac;
    background: #f0fdf4;
}

.radio-option input[type="radio"]:checked + label {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

/* Card hover */
.card-hover {
    transition: all 0.2s;
}
.card-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Content typography */
.content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-body p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.content-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}
.content-body ul li { margin-bottom: 0.5rem; }

.content-body ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}
.content-body ol li { margin-bottom: 0.5rem; }

.content-body a {
    color: #16a34a;
    text-decoration: underline;
}
.content-body a:hover {
    color: #15803d;
}

@media (max-width: 640px) {
    .calc-result-value {
        font-size: 2rem;
    }
}

/* Card images — 3:2 aspect ratio (600×400) for PageSpeed */
.card-img {
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
    background: #f9fafb;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.group:hover .card-img img {
    transform: scale(1.05);
}

/* Hero featured image — wider ratio */
.hero-img {
    aspect-ratio: 16 / 7;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}
@media (max-width: 640px) {
    .hero-img {
        aspect-ratio: 16 / 9;
    }
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient backgrounds */
.gradient-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #fff7ed 100%);
}

.gradient-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
