/* RewardWiFi Portal - Production CSS (No External Dependencies) */
/* Save as: /var/www/rewardwifi_portal/assets/css/portal.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7fafc;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    padding: 2rem 0 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.logo-text p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-success { background: #48bb78; color: white; }
.btn-danger  { background: #f56565; color: white; }
.btn-light   { background: #ffffff; color: #2d3748; }

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* Cards */
.card {
    background: rgba(255,255,255,0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.card-sub {
    font-size: 0.95rem;
    color: #4a5568;
}

.grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Terms */
.terms-wrap { max-width: 900px; margin: 0 auto; }
.terms-content {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    max-height: 45vh;
    overflow: auto;
}

.terms-content h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #1a202c; }
.terms-content h3 { font-size: 1rem; font-weight: 600; color: #1a202c; margin-top: 1rem; margin-bottom: 0.5rem; }
.terms-content p, .terms-content li { color: #4a5568; font-size: 0.875rem; line-height: 1.6; }
.terms-content ul { margin-left: 1.5rem; list-style: disc; }

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.checkbox-custom {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #667eea;
    border-radius: 0.375rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.alert-info {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 640px) {
    .container { padding: 0 0.75rem; }
}

/* No-JS Fallback */
.no-js .requires-js { display: none !important; }
.no-js .no-js-message {
    display: block !important;
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #742a2a;
    padding: 0.75rem;
    border-radius: 0.5rem;
}
