/* Modern Impact Page Styles */

/* Hero Header Section */
header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2346d754" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%2346d754" opacity="0.15"/></svg>');
    pointer-events: none;
}

.header-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-left h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out;
}

.header-left p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
}

.header-right img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInRight 0.8s ease-out;
}

/* Dashboard Section */
.dashboard-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.dashboard-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.dashboard-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.impact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out backwards;
}

.impact-card:nth-child(1) { animation-delay: 0.1s; }
.impact-card:nth-child(2) { animation-delay: 0.2s; }
.impact-card:nth-child(3) { animation-delay: 0.3s; }
.impact-card:nth-child(4) { animation-delay: 0.4s; }

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-theme-color), #3bc248);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(70, 215, 84, 0.2);
    border-color: var(--green-theme-color);
}

.impact-card:hover::before {
    transform: scaleX(1);
}

.impact-icon {
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, rgba(70, 215, 84, 0.1), rgba(59, 194, 72, 0.1));
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.impact-card:hover .impact-icon {
    transform: scale(1.1) rotate(5deg);
}

.impact-card h3 {
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impact-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green-theme-color), #3bc248);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: countUp 1s ease-out;
}

.impact-desc {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    line-height: 1.5;
}

/* Breakdown Section - Circular Progress Design */
.breakdown-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.breakdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(70, 215, 84, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.breakdown-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}

.breakdown-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 60px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.breakdown-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out backwards;
}

.breakdown-card:nth-child(1) { animation-delay: 0.1s; }
.breakdown-card:nth-child(2) { animation-delay: 0.2s; }
.breakdown-card:nth-child(3) { animation-delay: 0.3s; }
.breakdown-card:nth-child(4) { animation-delay: 0.4s; }

.breakdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green-theme-color), #3bc248);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.breakdown-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(70, 215, 84, 0.25);
    border-color: var(--green-theme-color);
}

.breakdown-card:hover::before {
    transform: scaleX(1);
}

/* Circular Progress */
.circular-progress {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 12;
}

.progress-ring-circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(70, 215, 84, 0.3));
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percentage {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green-theme-color), #3bc248);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Waste Icon */
.waste-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(70, 215, 84, 0.1), rgba(59, 194, 72, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.breakdown-card:hover .waste-icon {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(70, 215, 84, 0.2), rgba(59, 194, 72, 0.25));
}

.waste-icon i {
    font-size: 1.8rem;
    color: var(--green-theme-color);
}

.breakdown-info {
    position: relative;
}

.breakdown-info h4 {
    color: var(--primary-text-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.breakdown-info .weight {
    color: var(--green-theme-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.breakdown-info .impact {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    font-style: italic;
    padding: 8px 15px;
    background: rgba(70, 215, 84, 0.05);
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

/* Achievements Section */
.achievements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.achievements-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 60px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out backwards;
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }
.achievement-card:nth-child(5) { animation-delay: 0.5s; }
.achievement-card:nth-child(6) { animation-delay: 0.6s; }

.achievement-card.unlocked {
    border: 3px solid var(--green-theme-color);
}

.achievement-card.unlocked::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--green-theme-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-card.unlocked:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(70, 215, 84, 0.3);
}

.achievement-card.locked:hover {
    transform: scale(1.02);
}

.achievement-badge {
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.achievement-card.unlocked:hover .achievement-badge {
    transform: scale(1.1) rotate(15deg);
    animation: bounce 0.6s ease infinite;
}

.achievement-card h3 {
    margin-bottom: 10px;
    color: var(--primary-text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    line-height: 1.5;
}

/* Rewards Section */
.rewards-section {
    padding: 80px 0;
    background: white;
}

.rewards-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.rewards-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 60px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reward-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out backwards;
}

.reward-card:nth-child(1) { animation-delay: 0.1s; }
.reward-card:nth-child(2) { animation-delay: 0.2s; }
.reward-card:nth-child(3) { animation-delay: 0.3s; }
.reward-card:nth-child(4) { animation-delay: 0.4s; }

.reward-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--green-theme-color);
}

.reward-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reward-card:hover img {
    transform: scale(1.1);
}

.reward-content {
    padding: 30px;
}

.reward-content h3 {
    margin-bottom: 15px;
    color: var(--primary-text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.points-cost {
    color: var(--green-theme-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-cost::before {
    content: '★';
    font-size: 1.2rem;
}

.reward-content button {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.reward-content .primary-btn {
    background: var(--green-theme-color) !important;
    color: white !important;
}

.reward-content .primary-btn:hover {
    background: var(--green-theme-color-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(70, 215, 84, 0.3);
}

.reward-content button.disabled {
    background-color: #e9ecef !important;
    color: #999 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.reward-content button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--green-theme-color) 0%, #3bc248 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="3" fill="white" opacity="0.1"/><circle cx="90" cy="90" r="2" fill="white" opacity="0.15"/></svg>');
    pointer-events: none;
}

.cta-section-container {
    text-align: center;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.cta-section-container h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-section-container p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-section .primary-btn {
    background: white !important;
    color: var(--green-theme-color) !important;
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-section .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green-theme-color), #3bc248);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease 0.2s backwards;
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-content h3 {
    font-size: 2rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-content .primary-btn {
    background: var(--green-theme-color) !important;
    color: white !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .header-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .header-right img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .header-left h1 {
        font-size: 2.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .impact-value {
        font-size: 2.5rem;
    }

    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .breakdown-card {
        padding: 30px 20px;
    }

    .circular-progress svg {
        width: 120px;
        height: 120px;
    }

    .progress-ring-bg,
    .progress-ring-circle {
        stroke-width: 10;
    }

    .percentage {
        font-size: 1.6rem;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
    }

    .cta-section-container h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 2rem;
    }

    .header-left p {
        font-size: 1rem;
    }

    .header-right img {
        height: 300px;
        border-radius: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .impact-value {
        font-size: 2rem;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .breakdown-card {
        padding: 35px 25px;
    }

    .circular-progress svg {
        width: 130px;
        height: 130px;
    }

    .breakdown-info h4 {
        font-size: 1.1rem;
    }

    .breakdown-info .weight {
        font-size: 1.3rem;
    }

    .breakdown-info .impact {
        font-size: 0.85rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .cta-section-container h2 {
        font-size: 1.8rem;
    }

    .cta-section-container p {
        font-size: 1rem;
    }

    .modal-content {
        padding: 40px 30px;
    }
}
