/* Main Styles for Swoul - Minecraft Account Market */

/* Variables */
:root {
    /* Light Theme (Default) */
    --primary-color: #6fb6f6;
    --accent-color: #ffaaff;
    --dark-primary: #4a8ad0;
    --light-primary: #a0d0ff;
    --text-color: #333;
    --light-text: #666;
    --background: #f5f7fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-bg-solid: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --button-radius: 25px;
    --input-radius: 15px;
    --transition: all 0.3s ease;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f0f4f8;
    --footer-text: #555;
    --border-color: rgba(0, 0, 0, 0.1);
    --shape-color-1: rgba(111, 182, 246, 0.4);
    --shape-color-2: rgba(255, 170, 255, 0.4);
    --shape-color-3: rgba(111, 182, 246, 0.2);
    --shape-color-4: rgba(255, 170, 255, 0.2);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #5a9fe0;
    --accent-color: #ff88ff;
    --dark-primary: #3a7ab8;
    --light-primary: #7ab8e0;
    --text-color: #e0e0e0;
    --light-text: #aaaaaa;
    --background: #121212;
    --card-bg: rgba(30, 30, 30, 0.9);
    --card-bg-solid: #1e1e1e;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #1a1a1a;
    --footer-text: #aaaaaa;
    --border-color: rgba(255, 255, 255, 0.1);
    --shape-color-1: rgba(90, 159, 224, 0.3);
    --shape-color-2: rgba(255, 136, 255, 0.3);
    --shape-color-3: rgba(90, 159, 224, 0.15);
    --shape-color-4: rgba(255, 136, 255, 0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--background);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background with Moving Shapes */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -2;
    opacity: 0.8;
    overflow: hidden;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    background-color: var(--shape-color-1);
    top: -100px;
    left: -100px;
    animation: moveShape1 25s ease-in-out infinite alternate;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background-color: var(--shape-color-2);
    bottom: -150px;
    right: -150px;
    animation: moveShape2 30s ease-in-out infinite alternate;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background-color: var(--shape-color-3);
    top: 40%;
    right: 15%;
    animation: moveShape3 20s ease-in-out infinite alternate;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background-color: var(--shape-color-4);
    bottom: 30%;
    left: 10%;
    animation: moveShape4 15s ease-in-out infinite alternate;
}

@keyframes moveShape1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes moveShape2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

@keyframes moveShape3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

@keyframes moveShape4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover:after {
    width: 100%;
}

.btn-login {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--button-radius);
    box-shadow: 0 4px 15px rgba(111, 182, 246, 0.3);
}

.btn-login:hover {
    background-color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 182, 246, 0.4);
}

.btn-login:after {
    display: none;
}

/* Main Content */
main {
    flex: 1;
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 40px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--light-text);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--button-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(111, 182, 246, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 182, 246, 0.4);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 23px;
    border-radius: var(--button-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: rgba(111, 182, 246, 0.1);
    transform: translateY(-2px);
}

/* Sections */
section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow);
}

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

.feature {
    background-color: var(--card-bg-solid);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature p {
    color: var(--light-text);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 20px;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(111, 182, 246, 0.3);
}

.step h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.step p {
    color: var(--light-text);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
}

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

.footer-logo {
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-track {
    width: 50px;
    height: 24px;
    background-color: var(--light-text);
    border-radius: 30px;
    display: block;
    position: relative;
    transition: var(--transition);
}

.toggle-indicator {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-icon {
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41.39.39 1.03.39 1.41 0l1.06-1.06z"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

#theme-toggle.active .toggle-indicator {
    transform: translateX(26px);
}

#theme-toggle.active .toggle-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555555"><path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"/></svg>');
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--input-radius);
    background-color: var(--card-bg-solid);
    color: var(--text-color);
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav ul {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tab Styles */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: var(--button-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tab-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: all 0.5s ease;
    z-index: -1;
}

.tab-btn:hover:before {
    width: 100%;
}

.tab-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(111, 182, 246, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 8px 15px rgba(111, 182, 246, 0.3);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(111, 182, 246, 0.3);
}

.pagination-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(111, 182, 246, 0.4);
}

.pagination-btn.active {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Account Grid Styles */
.account-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.account-card {
    background-color: var(--card-bg-solid);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.account-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.account-card p {
    color: var(--light-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.account-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.buy-btn {
    width: 100%;
}

@media (max-width: 1200px) {
    .account-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
