/* Tatina Školica Engleskog Jezika - Main Stylesheet */

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

body {
    font-family: Arial, "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.main-title {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.4rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* Section Styles */
.section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tense and Test Groups */
.tense-group, .test-group {
    margin-bottom: 50px;
}

.group-title {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Cloud Container and Rows */
.clouds-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.clouds-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

/* Cloud Navigation Buttons */
.cloud {
    background: white;
    color: #333;
    padding: 25px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.cloud:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f8f9fa);
}

.cloud i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #6a11cb;
    transition: all 0.3s ease;
}

.cloud:hover i {
    color: #2575fc;
    transform: scale(1.2);
}

.cloud small {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    font-weight: 400;
}

/* Test Cloud Variations */
.test-cloud {
    background: linear-gradient(45deg, #fff 0%, #e3f2fd 100%);
    border: 2px solid #2196f3;
}

.test-cloud:hover {
    background: linear-gradient(45deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #1976d2;
}

.general-test-cloud {
    background: linear-gradient(45deg, #fff 0%, #fff3e0 100%);
    border: 3px solid #ff9800;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.general-test-cloud:hover {
    background: linear-gradient(45deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #f57c00;
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.4);
}

/* Progress Section */
.progress-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.progress-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-5px);
}

.progress-card i {
    font-size: 3rem;
    color: #6a11cb;
    margin-bottom: 15px;
}

.progress-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.8s ease-in-out;
}

.progress-text {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #6a11cb;
    margin-bottom: 15px;
    display: block;
}

.feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    text-align: center;
    color: white;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .clouds-row {
        gap: 20px;
    }

    .cloud {
        min-width: 160px;
        padding: 20px 25px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 18px; /* Increased from default 16px */
    }

    .container {
        padding: 10px;
    }

    .main-title {
        font-size: 2.5rem; /* Increased from 2.2rem */
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1.4rem; /* Increased from 1.2rem */
    }

    .section-title {
        font-size: 2rem; /* Increased from 1.8rem */
        margin-bottom: 25px;
    }

    .group-title {
        font-size: 1.6rem; /* Increased from 1.4rem */
    }

    .clouds-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cloud {
        min-width: 250px;
        padding: 22px; /* Increased from 20px */
        font-size: 1.15rem; /* Increased from 1rem */
    }

    .cloud i {
        font-size: 2rem; /* Increased from 1.8rem */
    }

    .cloud small {
        font-size: 1rem; /* Increased for better readability */
    }

    .progress-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card, .progress-card {
        padding: 20px;
    }

    .feature-card h4 {
        font-size: 1.6rem; /* Increased */
    }

    .feature-card p {
        font-size: 1.1rem; /* Increased */
    }

    .progress-card h4 {
        font-size: 1.7rem; /* Increased */
    }

    .progress-text {
        font-size: 1.1rem; /* Increased */
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    body {
        font-size: 17px; /* Minimum font size for smallest devices */
    }

    .main-title {
        font-size: 2rem; /* Increased from 1.8rem */
    }

    .subtitle {
        font-size: 1.2rem; /* Increased from 1rem */
    }

    .section-title {
        font-size: 1.7rem; /* Increased from 1.5rem */
    }

    .group-title {
        font-size: 1.4rem; /* Added for consistency */
    }

    .cloud {
        min-width: 220px;
        padding: 18px; /* Increased from 15px */
        font-size: 1.1rem; /* Increased from 0.95rem */
    }

    .cloud i {
        font-size: 1.8rem; /* Increased from 1.5rem */
    }

    .cloud small {
        font-size: 0.95rem; /* Added for better readability */
    }

    .feature-card i {
        font-size: 2.3rem; /* Increased from 2rem */
    }

    .feature-card h4 {
        font-size: 1.4rem; /* Added */
    }

    .feature-card p {
        font-size: 1.05rem; /* Added */
    }

    .progress-card i {
        font-size: 2.8rem; /* Increased from 2.5rem */
    }

    .progress-card h4 {
        font-size: 1.5rem; /* Added */
    }

    .progress-text {
        font-size: 1.05rem; /* Added */
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cloud {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .cloud:hover {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    }
}

/* Accessibility Improvements */
.cloud:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.feature-card:focus, .progress-card:focus {
    outline: 2px solid #6a11cb;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .cloud, .feature-card, .progress-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .header, .section-title, .group-title {
        color: black;
        text-shadow: none;
    }
}