/* Root styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* CSS Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --secondary-text: #666666;
    --border-color: #dddddd;
    --shadow-color: rgba(0,0,0,0.1);
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --accent-shadow: rgba(255, 107, 107, 0.3);
    --accent-shadow-hover: rgba(255, 107, 107, 0.4);
    --link-color: #1a73e8;
    --chrome-color: #4285f4;
    --firefox-color: #ff4f3f;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --secondary-text: #cccccc;
    --border-color: #444444;
    --shadow-color: rgba(255,255,255,0.1);
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --accent-shadow: rgba(255, 107, 107, 0.2);
    --accent-shadow-hover: rgba(255, 107, 107, 0.3);
    --link-color: #5b9eff;
}

/* Main elements */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-left: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right a {
    color: var(--text-color);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-right a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Theme Toggle */
.theme-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    width: 40px;
    height: 40px;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Main Content */
.main-title {
    text-align: center;
    font-size: 2.5em;
    margin: 40px 0 20px;
}

.main-description {
    text-align: center;
    margin: 20px 0;
}

/* Browser Extensions */
.browser-extensions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    text-align: center;
}

.browser-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.browser-btn:hover {
    box-shadow: 0 2px 8px var(--shadow-color);
}

.browser-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.browser-icon {
    font-size: 24px;
}

.fa-chrome {
    color: var(--chrome-color);
}

.fa-firefox {
    color: var(--firefox-color);
}

/* Features */
.feature-section {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

.feature-text h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-text p {
    color: var(--secondary-text);
    margin-bottom: 24px;
}

.feature-image {
    box-shadow: 0 4px 12px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Donate Button */
.donate-btn {
    background-color: var(--accent-color);
    color: white !important;
    padding: 12px 24px;
    margin: 24px 12px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.donate-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-shadow-hover);
}

.donate-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--secondary-text);
    font-size: 14px;
}

footer a {
    color: var(--link-color);
    text-decoration: none;
}

.copyright {
    margin-top: 20px;
}

/* Add media queries for better mobile support */
@media (max-width: 768px) {
    .browser-extensions {
        flex-direction: column;
    }

    .feature-section {
        gap: 10px;
        margin: 20px 0;
    }
    .feature-text h2 {
        margin-bottom: 8px;
    }

    .feature-text p {
        margin-bottom: 12px;
    }
    
    .feature-section {
        display: flex;
        flex-direction: column;
    }
    
    .feature-section .feature-text {
        order: 1;
    }
    
    .feature-section .feature-image {
        order: 2;
        width: 100%;
    }
    
    /* For even sections where text should still appear first */
    .feature-section:nth-child(even) .feature-text {
        order: 1;
    }
    
    .feature-section:nth-child(even) .feature-image {
        order: 2;
    }
}

