/* styles.css - Universal Stylesheet for Loot Valley */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6F35FE;
    --primary-light: #9671FF;
    --primary-dark: #5020CC;
    --secondary: #35DDFE;
    --secondary-light: #79E9FF;
    --secondary-dark: #1CA0BD;
    --text-dark: #2A2A2A;
    --text-light: #FFFFFF;
    --text-muted: #888888;
    --background: #F5F7FF;
    --card-bg: #FFFFFF;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FFC107;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: white;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Mountain Background in footer only */
.mountain-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: -1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%239671FF" fill-opacity="0.2" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,186.7C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path><path fill="%236F35FE" fill-opacity="0.2" d="M0,128L60,149.3C120,171,240,213,360,229.3C480,245,600,235,720,224C840,213,960,203,1080,186.7C1200,171,1320,149,1380,138.7L1440,128L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path><path fill="%235020CC" fill-opacity="0.1" d="M0,64L60,69.3C120,75,240,85,360,90.7C480,96,600,96,720,122.7C840,149,960,203,1080,208C1200,213,1320,171,1380,149.3L1440,128L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% auto;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(111, 53, 254, 0.2);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(111, 53, 254, 0.08);
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(111, 53, 254, 0.12);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

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

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

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(111, 53, 254, 0.2);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(111, 53, 254, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(111, 53, 254, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    box-shadow: 0 2px 5px rgba(53, 221, 254, 0.3);
}

.btn-link {
    background: none;
    color: var(--primary);
    padding: 5px 0;
    border: none;
    text-decoration: underline;
}

.btn-link:hover {
    background: none;
    color: var(--primary-dark);
    box-shadow: none;
    transform: none;
}

/* Message Styles */
.error,
.success,
.warning {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

/* Navigation Menu */
.menu {
    display: flex;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(111, 53, 254, 0.1);
    overflow: hidden;
}

.menu a {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.menu a:hover {
    color: var(--primary);
    background-color: rgba(111, 53, 254, 0.05);
}

.menu a.active {
    color: var(--primary);
    background-color: rgba(111, 53, 254, 0.1);
}

.menu a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* User Points Display */
.points-display {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(111, 53, 254, 0.2);
}

.points-display::before {
    content: "✦";
    margin-right: 8px;
    font-size: 20px;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-muted);
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Dashboard Specific Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(111, 53, 254, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile avatar */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(111, 53, 254, 0.2);
}

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

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

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

.flex {
    display: flex;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}