/**
 * Common CSS Styles
 * This file contains consolidated styles shared across multiple files
 */

/* Import unified color variables */
@import url("variables.css");

/* Import standardized breakpoints */
@import url("breakpoints.css");

/* Reset and Base Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans, 'Open Sans', Arial, sans-serif);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    margin-bottom: 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Common Layout & Grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--border-radius, 4px);
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Basic Card Style (component-specific styles moved to component-system.css) */
.card {
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.6) 0%, rgba(10, 25, 47, 0.6) 100%);
    border-radius: var(--border-radius, 8px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 30px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
}

/* Common Footer Styles */
.site-footer {
    background-color: var(--secondary);
    padding-top: 80px;
    margin-top: auto;
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.05);
    color: var(--accent);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-3px);
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

/* Common Media Queries */
@media (max-width: 992px) {
    .site-header {
        padding: 15px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: clamp(32px, 5vw, 50px);
    }
    
    h2 {
        font-size: clamp(24px, 4vw, 36px);
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 40px 0;
    }
}