/* Custom Styles - GoKorean Website */

/* Root Variables */
:root {
    --primary-color: #d41f1f;
    --secondary-color: #ffcc00;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
}

/* Header Customization */
#header {
    background-image: linear-gradient(135deg, #d41f1f 0%, #b91919 100%);
    color: white;
}

#header h1 a {
    color: white;
}

#header h1 a:hover {
    color: var(--secondary-color);
}

/* Navigation */
#nav ul li a {
    color: white;
    transition: var(--transition);
}

#nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Hero Section */
#banner {
    background: linear-gradient(rgba(212, 31, 31, 0.8), rgba(185, 25, 25, 0.8)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6em 0;
}

#banner h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

#banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
}

/* Posts Grid */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.posts article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.posts article .image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.posts article .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.posts article:hover .image img {
    transform: scale(1.05);
}

.posts article h3 {
    color: var(--primary-color);
    padding: 1em 1em 0.5em;
    margin: 0;
}

.posts article p {
    padding: 0 1em;
    color: #666;
}

/* Buttons */
.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: #b91919;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(212, 31, 31, 0.3);
}

.button.big {
    font-size: 1.2em;
    padding: 1em 2em;
}

.button.fit {
    width: 100%;
    text-align: center;
}

/* CTA Section */
#cta {
    background: linear-gradient(135deg, #d41f1f 0%, #b91919 100%);
    color: white;
    padding: 3em;
    border-radius: 8px;
    margin: 3em 0;
    text-align: center;
}

#cta h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 0.5em;
}

#cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
}

#cta form {
    max-width: 500px;
    margin: 2em auto 0;
}

#cta input,
#cta textarea {
    width: 100%;
    padding: 0.8em;
    margin: 0.5em 0;
    border: none;
    border-radius: 4px;
    font-family: 'Source Sans Pro', sans-serif;
}

#cta textarea {
    resize: vertical;
}

/* Footer */
#footer {
    background-color: #222;
    color: white;
    padding: 3em 0;
    margin-top: 3em;
}

#footer h3,
#footer h4 {
    color: var(--secondary-color);
}

#footer a {
    color: #ccc;
    transition: var(--transition);
}

#footer a:hover {
    color: var(--secondary-color);
}

#footer .copyright {
    text-align: center;
    padding-top: 2em;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9em;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.8em;
    margin: 0.5em 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Source Sans Pro', sans-serif;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(212, 31, 31, 0.3);
}

/* Responsive */
@media screen and (max-width: 768px) {
    #banner h1 {
        font-size: 1.8em;
    }

    .posts {
        grid-template-columns: 1fr;
    }

    #header h1 {
        font-size: 1.2em;
    }

    #cta {
        padding: 2em;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }

.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.mb-3 { margin-bottom: 3em; }

.p-1 { padding: 1em; }
.p-2 { padding: 2em; }
.p-3 { padding: 3em; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.d-flex {
    display: flex;
    align-items: center;
}

.d-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
