/* Variables */
:root {
    --primary-color: #0088cc;
    --secondary-color: #2aabee;
    --accent-color: #229ed9;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --background-alt: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.button i {
    font-size: 1.1em;
}

.button--primary {
    background-color: var(--primary-color);
    color: white;
}

.button--primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.button--secondary {
    background-color: var(--background-alt);
    color: var(--text-color);
}

.button--secondary:hover {
    background-color: var(--border-color);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero__container {
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero__title-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__stat {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero__stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.hero__stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Warning Banner */
.warning {
    background-color: #fff3cd;
    padding: 1rem 0;
    border-bottom: 1px solid #ffeeba;
}

.warning__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.warning__icon {
    color: var(--warning-color);
    font-size: 1.5rem;
}

.warning__title {
    color: #856404;
    margin-bottom: 0.25rem;
}

.warning__description {
    color: #856404;
    margin: 0;
}

/* Servers Section */
.servers {
    padding: 4rem 0;
    background-color: var(--background-alt);
}

.section__title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.server-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.server-card__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.server-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.server-card__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.server-card__ip,
.server-card__location,
.server-card__status,
.server-card__count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.server-card__proxies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Proxy Card */
.proxy-card {
    background: var(--background-alt);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

.proxy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.proxy-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning-color);
    color: #856404;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.proxy-card__header {
    margin-bottom: 1rem;
}

.proxy-card__title {
    margin-bottom: 0.5rem;
}

.proxy-card__description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.proxy-card__details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.proxy-card__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proxy-card__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.proxy-card__value {
    font-family: monospace;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.proxy-card__qr {
    text-align: center;
    margin-bottom: 1.5rem;
}

.proxy-card__qr-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.proxy-card__qr-image {
    border-radius: 8px;
    transition: var(--transition);
}

.proxy-card__actions {
    display: flex;
    gap: 1rem;
}

/* Status Indicator */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    margin-right: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
}

/* Instructions Section */
.instructions {
    padding: 4rem 0;
}

.instructions__warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.instructions__warning-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    margin-bottom: 1rem;
}

.instructions__warning-text {
    color: #856404;
    margin: 0;
}

.instructions__guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.instructions__guide {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.instructions__guide-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.instructions__steps {
    padding-left: 1.5rem;
}

.instructions__steps li {
    margin-bottom: 0.5rem;
}

.instructions__tips {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.instructions__tips-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.instructions__tips-list {
    list-style: none;
    padding: 0;
}

.instructions__tips-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.instructions__tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .server-card__info {
        grid-template-columns: 1fr;
    }

    .proxy-card__actions {
        flex-direction: column;
    }

    .instructions__guides {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --text-light: #a0a0a0;
        --background-color: #1a1a1a;
        --background-alt: #2d2d2d;
        --border-color: #404040;
    }

    .hero {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }

    .hero__stat,
    .server-card,
    .proxy-card,
    .instructions__guide,
    .instructions__tips {
        background: var(--background-alt);
    }

    .proxy-card__value {
        background: var(--background-color);
    }
} 