/* AFX Auction - Modern Bidding System Styles */
/* Brand Colors: Purple, Yellow, White */

:root {
    --primary-purple: #6f42c1;
    --secondary-purple: #8a63d2;
    --light-purple: #e9e3ff;
    --accent-yellow: #ffc107;
    --dark-yellow: #e0a800;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(111, 66, 193, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
    min-height: 100vh;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🏆";
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(111, 66, 193, 0.15);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-warning {
    background: var(--accent-yellow);
    color: var(--dark-gray);
}

.btn-warning:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Auction Items Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.auction-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.auction-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.2);
}

.auction-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--medium-gray);
}

.auction-content {
    padding: 1.5rem;
}

.auction-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.auction-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.auction-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: var(--light-gray);
}

.detail-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: var(--success);
    color: var(--white);
    animation: pulse 2s infinite;
}

.status-pending {
    background: var(--warning);
    color: var(--dark-gray);
}

.status-ended {
    background: var(--medium-gray);
    color: var(--white);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Timer */
.timer {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

/* Bid Form */
.bid-form-container {
    background: var(--light-purple);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bid-form {
    width: 100%;
}

.bid-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.input-with-symbol {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    font-weight: bold;
    color: var(--medium-gray);
}

.bid-amount {
    padding-left: 24px !important;
    font-size: 1.2rem;
    font-weight: 500;
    height: 48px;
    text-align: left;
    width: 100%;
    border: 2px solid var(--primary-purple);
}

.bid-button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    height: 48px;
    min-width: 120px;
    border: none;
    background: var(--accent-yellow);
    color: var(--dark-gray);
    text-transform: uppercase;
}

.bid-button:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
}

.bid-help-text {
    margin-top: 0.5rem;
    color: var(--medium-gray);
    font-style: italic;
    text-align: left;
}

@media (max-width: 768px) {
    .bid-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bid-button {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background: var(--primary-purple);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.table tr:hover {
    background: var(--light-gray);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-yellow) 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--medium-gray);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
    border-color: var(--info);
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auction-details {
        grid-template-columns: 1fr;
    }
    
    .bid-input {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-purple);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.fw-bold { font-weight: bold; }
.text-muted { color: var(--medium-gray); }
