/* Common Styles for Static Pages (Privacy, Terms, About, Contact) */

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

:root {
    --primary-color: #ff69b4;
    --secondary-color: #da70d6;
    --accent-color: #ffc0cb;
    --bg-light: #fff5f9;
    --bg-dark: #2d1b2e;
    --text-light: #4a2545;
    --text-dark: #ffd6e8;
    --border-radius: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    transition: all 0.3s ease;
    line-height: 1.6;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffc0cb 0%, #ff69b4 25%, #da70d6 50%, #dda0dd 75%, #ffb6c1 100%);
    opacity: 0.15;
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

body.dark-mode::before {
    background: linear-gradient(135deg, #ff1493 0%, #ba55d3 50%, #ff69b4 100%);
    opacity: 0.2;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
    border: 2px solid rgba(255, 192, 203, 0.3);
}

body.dark-mode .header {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.dark-mode-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.dark-mode-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
    border: 2px solid rgba(255, 192, 203, 0.3);
    animation: fadeIn 0.5s ease;
}

body.dark-mode .content-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff69b4, #da70d6, #ffc0cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.last-updated,
.subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

body.dark-mode .last-updated,
body.dark-mode .subtitle {
    color: #94a3b8;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode h2 {
    color: var(--accent-color);
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

body.dark-mode h3 {
    color: var(--accent-color);
}

p {
    margin-bottom: 15px;
    color: #64748b;
}

body.dark-mode p {
    color: #94a3b8;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #64748b;
}

body.dark-mode ul,
body.dark-mode ol {
    color: #94a3b8;
}

li {
    margin-bottom: 8px;
}

strong {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight-box {
    background: rgba(255, 192, 203, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
}

body.dark-mode .highlight-box {
    background: rgba(255, 192, 203, 0.05);
}

.contact-info {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(218, 112, 214, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    border: 2px solid rgba(255, 192, 203, 0.3);
}

body.dark-mode .contact-info {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(218, 112, 214, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Markdown content styles */
.content-card #mini-markdown {
    padding: 0;
}

.content-card #mini-markdown h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff69b4, #da70d6, #ffc0cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.content-card #mini-markdown h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

body.dark-mode .content-card #mini-markdown h2 {
    color: var(--accent-color);
}

.content-card #mini-markdown h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

body.dark-mode .content-card #mini-markdown h3 {
    color: var(--accent-color);
}

.content-card #mini-markdown p {
    margin-bottom: 15px;
    color: #64748b;
    line-height: 1.8;
}

body.dark-mode .content-card #mini-markdown p {
    color: #94a3b8;
}

.content-card #mini-markdown ul,
.content-card #mini-markdown ol {
    margin-left: 25px;
    margin-bottom: 20px;
    color: #64748b;
}

body.dark-mode .content-card #mini-markdown ul,
body.dark-mode .content-card #mini-markdown ol {
    color: #94a3b8;
}

.content-card #mini-markdown li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-card #mini-markdown hr {
    border: none;
    border-top: 2px solid rgba(255, 192, 203, 0.3);
    margin: 40px 0;
}

body.dark-mode .content-card #mini-markdown hr {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.content-card #mini-markdown a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-style: normal;
}

.content-card #mini-markdown a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 25px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Contact page specific styles */
.subtitle {
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(218, 112, 214, 0.1));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 192, 203, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .contact-item {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(218, 112, 214, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.6);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

body.dark-mode .contact-title {
    color: var(--accent-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 192, 203, 0.3);
    margin-top: 40px;
}

body.dark-mode .contact-form {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .form-title {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

body.dark-mode .form-label {
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 192, 203, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
    transition: all 0.3s ease;
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.2);
}

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

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.submit-button:active {
    transform: translateY(0);
}
