/**
 * Frontend CSS dla TylkoMy Wedding Gallery
 * Bazuje na stylach z theme-style.css
 */

:root {
    --tmw-primary: #00aeaf;
    --tmw-primary-dark: #009091;
    --tmw-orange: #f48f00;
    --tmw-text: #444444;
    --tmw-heading: #121212;
    --tmw-light-bg: #f8f8f9;
}

/* Resetowanie domyślnych styli dla shortcode */
.tmw-couple-dashboard,
.tmw-guest-gallery {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: var(--tmw-text);
    line-height: 1.6;
}

.tmw-couple-dashboard *,
.tmw-guest-gallery * {
    box-sizing: border-box;
}

/* Przyciski */
.tmw-btn {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.tmw-btn-primary:hover {
    background: var(--tmw-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 174, 175, 0.3);
}

.tmw-btn-secondary {
    background: white;
    color: var(--tmw-text);
    border: 2px solid #dadada;
}

.tmw-btn-secondary:hover {
    border-color: var(--tmw-primary);
    color: var(--tmw-primary);
}

/* Nagłówki */
.tmw-couple-dashboard h1,
.tmw-couple-dashboard h2,
.tmw-couple-dashboard h3,
.tmw-guest-gallery h1,
.tmw-guest-gallery h2,
.tmw-guest-gallery h3 {
    font-family: 'Old Standard TT', serif;
    color: var(--tmw-heading);
    line-height: 1.3;
}

/* Karty */
.tmw-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Alerty */
.tmw-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tmw-alert-success {
    background: #e6f7f0;
    color: #006633;
    border-left: 4px solid #129e32;
}

.tmw-alert-error {
    background: #fff5f5;
    color: #da0419;
    border-left: 4px solid #da0419;
}

.tmw-alert-warning {
    background: #fff5e6;
    color: #996600;
    border-left: 4px solid #f3b600;
}

.tmw-alert-info {
    background: #e6f7ff;
    color: #0066cc;
    border-left: 4px solid var(--tmw-primary);
}

/* Grid zdjęć */
.tmw-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .tmw-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* Loadery */
.tmw-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--tmw-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: tmw-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes tmw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 576px) {
    .tmw-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .tmw-card {
        padding: 15px;
    }
}
