/* styles.css - Common CSS for all pages */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { 
    background-color: #f8f9fa; 
    color: #333; 
    line-height: 1.6;
    padding-top: 132px; /* Total height of 3 bars: 36px + 52px + 60px = 148px - adjusted for better spacing */
}

/* Top Bar - 1st Line */
.top-bar {
    background: #2c3e50;
    color: white;
    padding: 10px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    height: 36px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.refer-friend {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refer-friend i {
    color: #ff6b00;
}

.auth-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
}

.auth-links a:hover {
    color: #ff6b00;
}

/* Action Bar - 2nd Line */
.action-bar {
    background: #34495e;
    padding: 12px 0;
    position: fixed;
    top: 36px; /* Height of top bar */
    width: 100%;
    z-index: 1001;
    height: 52px;
}

.action-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.action-button {
    background: #ff6b00;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.action-button:hover {
    background: #e55e00;
    transform: translateY(-2px);
}

/* Main Navigation - 3rd Line */
.main-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 88px; /* Height of top bar + action bar (36px + 52px) */
    width: 100%;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu a { 
    text-decoration: none; 
    color: white; 
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-menu a:hover { 
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-menu a i {
    font-size: 12px;
}

.logo { 
    font-size: 20px; 
    font-weight: bold; 
    color: white; 
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo i {
    margin-right: 8px;
    font-size: 18px;
}

.phone-number {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.phone-number a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-number a::before {
    content: "📱";
    font-size: 10px;
}

/* Common Container */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Common Button Styles */
.cta-button { 
    background: #28a745; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
    transition: background 0.3s;
    font-size: 14px;
}

.cta-button:hover {
    background: #218838;
}

.login-btn { 
    color: #333; 
    text-decoration: none; 
    padding: 8px 15px; 
    transition: color 0.3s;
}

.login-btn:hover {
    color: #ff6b00;
}

.signup-btn { 
    background: #ff6b00; 
    color: white; 
    padding: 8px 20px; 
    border-radius: 5px; 
    text-decoration: none; 
    transition: background 0.3s;
}

.signup-btn:hover {
    background: #e55e00;
}

/* Footer Styles */
.footer { 
    background: #333; 
    color: white; 
    padding: 60px 0 25px; 
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ff6b00;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 12px;
    color: #ddd;
    font-size: 14px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: #ff6b00;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #555;
    color: #aaa;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        padding-top: 240px; /* Increased for mobile stacking */
    }
    
    .top-bar {
        position: relative;
        top: 0;
    }
    
    .action-bar {
        position: relative;
        top: 0;
    }
    
    .main-nav {
        position: relative;
        top: 0;
    }
    
    .action-bar-container {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        height: auto;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .phone-number {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 260px; /* Further increased for mobile */
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        height: auto;
        padding: 8px 20px;
    }
    
    .top-bar {
        height: auto;
        position: relative;
    }
    
    .auth-links {
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .action-bar {
        height: auto;
        position: relative;
        padding: 8px 0;
    }
    
    .action-button {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .phone-number a {
        font-size: 11px;
    }
    
    .action-button {
        padding: 6px 12px;
        font-size: 11px;
    }
}