:root {
    --primary: #00c853;
    --secondary: #00b0ff;
    --accent: #ff4081;
    --dark: #263238;
    --light: #f5f7fa;
    --card-bg: rgba(255, 255, 255, 0.92);
    --negative: #ff5252;
    --positive: #4caf50;
    --food: #ff9800;
    --blog-bg: #f0f8ff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 20px;
    font-weight: 300;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.4);
}

.tab i {
    font-size: 1.2rem;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.calculator-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInLeft 1s ease;
}

.results-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInRight 1s ease;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
    font-size: 1.1rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

input, select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.item-counter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    transform: scale(1.1);
    background: #00b248;
}

.counter-value {
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.4);
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.6);
}

.calculate-btn:active {
    transform: translateY(0);
}

.results-container {
    flex: 1;
    display: none;
    flex-direction: column;
    gap: 25px;
}

.impact-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.water-stat:before { background: var(--secondary); }
.co2-stat:before { background: var(--negative); }
.waste-stat:before { background: var(--food); }

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.water-stat .stat-value { color: var(--secondary); }
.co2-stat .stat-value { color: var(--negative); }
.waste-stat .stat-value { color: var(--food); }

.stat-label {
    font-size: 1rem;
    color: #666;
}

.visualization {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
}

.comparison {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 15px;
    background: linear-gradient(45deg, rgba(0, 200, 83, 0.1), rgba(0, 176, 255, 0.1));
    border-radius: 15px;
    margin-top: 10px;
    border-left: 4px solid var(--primary);
}

.comparison i {
    color: var(--accent);
    margin-right: 8px;
}

.net-impact {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 3px solid var(--primary);
}

.net-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.net-label {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
}

.share-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.icon-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.icon-tiktok {
    background: linear-gradient(45deg, #69c9d0, #ee1d52);
}

.icon-twitter {
    background: #1da1f2;
}

.tips-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease;
}

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

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--positive);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tip-card i {
    font-size: 2rem;
    color: var(--positive);
    margin-bottom: 15px;
}

.tip-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.impact-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--positive);
}

.impact-value {
    font-weight: 700;
    color: var(--positive);
    font-size: 1.1rem;
}

.positive-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.action-card.selected {
    border-color: var(--positive);
    background: rgba(76, 175, 80, 0.05);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--positive);
}

.action-info {
    flex: 1;
}

.action-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.action-desc {
    font-size: 0.9rem;
    color: #666;
}

.action-toggle {
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background: #e0e0e0;
    position: relative;
    transition: background 0.3s ease;
}

.action-toggle:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.action-card.selected .action-toggle {
    background: var(--positive);
}

.action-card.selected .action-toggle:after {
    transform: translateX(24px);
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--light);
    font-size: 0.9rem;
    margin-top: 20px;
}

.water-drop {
    position: absolute;
    background: rgba(0, 200, 83, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.earth-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.pulse {
    animation: pulse 2s infinite;
}

.blog-section {
    background: var(--blog-bg);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-all {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    background: #00b248;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.4);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    background: rgba(0, 200, 83, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.85rem;
    margin-top: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn.active, .page-btn:hover {
    background: var(--primary);
    color: white;
}

.blog-container {
    display: none;
}

.blog-container.active {
    display: block;
}

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

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

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

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

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

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: 100%;
    }
}