/**
 * Photo Competition Frontend Styles - Modern Professional Version
 * Version: 2.0.0
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2c7a2c;
    --primary-dark: #1e5a1e;
    --primary-light: #4a9d4a;
    --secondary-color: #667eea;
    --secondary-dark: #5a67d8;
    --success-color: #48bb78;
    --warning-color: #f6ad55;
    --danger-color: #f56565;
    --info-color: #4299e1;

    --text-dark: #1a202c;
    --text-body: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;

    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;

    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: var(--bg-secondary);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }



#image-preview img{ max-width:500px; }
/* ===== Container & Layout ===== */
.pc-competition-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pc-section {
    margin: 3rem 0;
}

/* ===== Main Title ===== */
.pc-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* ===== Photo Grid - Modern Professional Design ===== */
.photo-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.photo-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); }
.photo-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
.photo-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.photo-grid.cols-6 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ===== Photo Item Card - Ultra Modern Design ===== */
.photo-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

.photo-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Photo Wrapper */
.photo-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.photo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover .photo-wrapper img {
    transform: scale(1.1);
}

/* Photo Overlay */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-actions .btn-view {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-actions .btn-view:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Photo Info Section */
.photo-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.photo-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-caption {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-author,
.photo-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.813rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.photo-author svg,
.photo-location svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-light);
    flex-shrink: 0;
}

/* Photo Meta Section */
.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.vote-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-body);
}

.vote-count svg {
    width: 20px;
    height: 20px;
    fill: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.vote-count .count {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== Submission Card - Modern Dashboard Style ===== */
.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.submission-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--border-color);
}

.submission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.submission-card:hover::after {
    opacity: 1;
}

.submission-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.submission-card:hover img {
    transform: scale(1.05);
}

.submission-info {
    padding: 1.25rem;
}

.submission-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.submission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Status Badges - Modern Pills */
.status {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
    padding-left: 1.5rem;
}

.status-pending::before {
    background: #f59e0b;
}

.status-approved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
    padding-left: 1.5rem;
}

.status-approved::before {
    background: #10b981;
}

.status-rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #f87171;
    padding-left: 1.5rem;
}

.status-rejected::before {
    background: #ef4444;
}

.submission-info small {
    color: var(--text-muted);
    font-size: 0.813rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.submission-info small::before {
    content: '📅';
    font-size: 1rem;
}

/* ===== Winner Badge ===== */
.winner-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInBounce {
    0% {
        transform: translateX(100px) scale(0);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px) scale(1.1);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.winner-badge .medal {
    font-size: 1.5rem;
}

.winner-badge .rank {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-dark);
}

/* ===== Buttons Global ===== */
.btn-primary,
.btn-secondary,
.btn-vote {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(44, 122, 44, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(44, 122, 44, 0.4);
}

.btn-vote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.813rem;
}

.btn-vote svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-vote:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-vote.voted {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
}

.btn-vote:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 157, 74, 0.1);
}

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

/* ===== PC Submission Form - Integrated Styles ===== */
.pc-submission-form {

    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.pc-submission-form .form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pc-submission-form .form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.pc-submission-form .form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.625rem;
    position: relative;
    z-index: 1;
    color:#FFFFFF;
}

.pc-submission-form .form-header p {
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

#pc-photo-submission {
    padding: 2.5rem;
}

/* Photo Requirements */
.pc-submission-form .requirements {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    border-left: 4px solid var(--primary-light);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    list-style: none;
}

.pc-submission-form .requirements li {
    color: var(--text-body);
    padding: 0.375rem 0;
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.875rem;
}

.pc-submission-form .requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1rem;
}

/* File Upload Area */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--primary-light);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(74, 157, 74, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload-label:hover {
    background: #f0f9f0;
    border-color: var(--primary-color);
    transform: scale(1.01);
}

.file-upload-label:hover::before {
    opacity: 1;
}

.file-upload-label .upload-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.file-upload-label .upload-text {
    color: var(--text-body);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.file-upload-label .upload-subtext {
    color: var(--text-muted);
    font-size: 0.813rem;
    margin-top: 0.313rem;
    display: block;
    position: relative;
    z-index: 1;
}

/* Image Preview */
#image-preview {
    margin-top: 1.25rem;
}

#image-preview.active {
    display: block;
    animation: slideInUp 0.4s ease;
}

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

.preview-container {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.preview-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.preview-info {
    padding: 0.625rem 0;
}

.preview-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.preview-info .info-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.preview-info .info-row:last-child {
    border-bottom: none;
}

.preview-info .info-label {
    font-weight: 600;
    color: var(--text-body);
    width: 120px;
    flex-shrink: 0;
}

.preview-info .info-value {
    color: var(--text-light);
    flex: 1;
}

/* Language Tabs */
.multilang-fields {
    margin-top: 2.5rem;
}

.multilang-fields h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.lang-tabs {
    display: flex;
    gap: 0.313rem;
    margin-bottom: 1.875rem;
    background: var(--bg-tertiary);
    padding: 0.313rem;
    border-radius: var(--border-radius);
}

.lang-tab {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition-base);
}

.lang-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lang-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Language Content */
.lang-content {
    animation: fadeIn 0.3s ease;
}

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

/* Form Actions */
.pc-submission-form .form-actions {
    margin-top: 2.5rem;
    padding-top: 1.875rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.pc-submission-form .btn-submit {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(44, 122, 44, 0.3);
    display: inline-block;
}

.pc-submission-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 122, 44, 0.4);
}

.pc-submission-form .btn-submit:active {
    transform: translateY(0);
}

.pc-submission-form .submission-info {
    margin-top: 1.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.pc-submission-form .submission-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Loading State */
.pc-submission-form .btn-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.pc-submission-form .btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-left: -0.625rem;
    margin-top: -0.625rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* ===== Login/Register Forms ===== */
.pc-login-form {
    max-width: 450px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.pc-login-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 157, 74, 0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pc-login-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}

.pc-login-form > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

#google-signin-button {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.btn-facebook {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #1877f2 0%, #1465d8 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.938rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.btn-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.btn-facebook .dashicons {
    font-size: 1.25rem;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.login-divider span {
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    font-size: 0.813rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Email Auth Container */
.email-auth-container {
    position: relative;
    z-index: 1;
}

.email-auth-container .form-group {
    margin-bottom: 1rem;
}

.email-auth-container input[type="text"],
.email-auth-container input[type="email"],
.email-auth-container input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.938rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
}

.email-auth-container input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(74, 157, 74, 0.1);
}

.email-auth-container label {
    display: flex;
    align-items: center;
    color: var(--text-body);
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0.75rem 0;
}

.email-auth-container input[type="radio"],
.email-auth-container input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.form-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Leaderboard ===== */
.pc-leaderboard {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 2rem auto;
}

.pc-leaderboard h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    position: relative;
    background: var(--bg-primary);
    margin-bottom: 0.75rem;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    transition: var(--transition-base);
}

.leaderboard-item:hover {
    background: var(--bg-secondary);
    transform: translateX(8px);
}

.leaderboard-item:hover::before {
    background: var(--primary-light);
}

.leaderboard-item:nth-child(1) { animation: slideInLeft 0.3s ease; }
.leaderboard-item:nth-child(2) { animation: slideInLeft 0.4s ease; }
.leaderboard-item:nth-child(3) { animation: slideInLeft 0.5s ease; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leaderboard-item .rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.leaderboard-item:nth-child(1) .rank { color: #ffd700; }
.leaderboard-item:nth-child(2) .rank { color: #c0c0c0; }
.leaderboard-item:nth-child(3) .rank { color: #cd7f32; }

.photo-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.leaderboard-item:hover .photo-thumbnail img {
    transform: scale(1.1);
}

.photo-details {
    flex: 1;
}

.photo-details h4 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.photo-details .author {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
}

.photo-details .votes {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== Pagination ===== */
.pc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin: 3rem 0;
    font-size: 0.938rem;
}

.pc-pagination a {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(74, 157, 74, 0.2);
}

.pc-pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 157, 74, 0.3);
}

.page-info {
    color: var(--text-body);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

/* ===== No Photos Message ===== */
.no-photos {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* ===== Voter Dashboard Specific ===== */
.pc-voter-dashboard .action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.pc-voter-dashboard .btn-secondary {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: var(--transition-base);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.2);
}

.pc-voter-dashboard .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(113, 128, 150, 0.3);
}

.votes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.vote-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.vote-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.vote-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.vote-info {
    padding: 0.875rem;
}

.vote-info h4 {
    margin: 0 0 0.375rem;
    font-size: 0.938rem;
    color: var(--text-dark);
}

.vote-info .author {
    color: var(--text-light);
    font-size: 0.813rem;
    margin: 0 0 0.375rem;
}

.vote-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.no-votes {
    text-align: center;
    padding: 3rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.no-votes p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.063rem;
}

.voter-actions h3,
.participant-actions h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.view-all {
    text-align: center;
    margin-top: 1.25rem;
}

.view-all a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.938rem;
}

.view-all a:hover {
    text-decoration: underline;
}

/* ===== My Submissions & Votes ===== */
.my-submissions h3,
.my-votes h3 {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.no-submissions {
    text-align: center;
    padding: 3rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.no-submissions p {
    margin-bottom: 1.5rem;
    font-size: 1.063rem;
}

.no-submissions .btn-primary {
    display: inline-block;
    width: auto;
    padding: 0.75rem 2rem;
}

/* ===== Logout Button ===== */
.logout-button {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.2);
}

.logout-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(245, 101, 101, 0.3);
}

.logout-button .dashicons {
    font-size: 1.125rem;
}

/* ===== Notices & Alerts ===== */
.pc-notice {
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-left: 4px solid var(--info-color);
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* .pc-notice::before {
    content: 'ℹ️';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
} */

.pc-notice.pc-maintenance {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-left-color: var(--warning-color);
    padding-left: 3rem;
}

.pc-notice.pc-maintenance::before {
    content: '⚠️';
}

.pc-notice.pc-closed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: var(--danger-color);
    padding-left: 3rem;
}

.pc-notice.pc-closed::before {
    content: '🚫';
}

/* ===== Dashboard Styles ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-pic,
.profile-pic-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.profile-pic-placeholder {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-30%, -30%) rotate(180deg); }
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.stat-card p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .pc-competition-wrapper {
        padding: 1rem;
    }

    .photo-grid.cols-2,
    .photo-grid.cols-3,
    .photo-grid.cols-4,
    .photo-grid.cols-6 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    /* Submission Form Responsive */
    #pc-photo-submission {
        padding: 1.25rem;
    }

    .lang-tabs {
        flex-wrap: wrap;
    }

    .lang-tab {
        min-width: calc(50% - 2.5px);
    }

    .preview-container {
        grid-template-columns: 1fr;
    }

    .preview-image {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .photo-grid,
    .submissions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .photo-info,
    .submission-info {
        padding: 1rem;
    }

    /* Submission Form Mobile */
    .pc-submission-form .form-header h2 {
        font-size: 1.5rem;
    }

    .pc-submission-form .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
    }

    .file-upload-label {
        padding: 2rem 1rem;
    }

    .file-upload-label .upload-icon {
        font-size: 2.5rem;
    }

    /* Login Form Mobile */
    .pc-login-form {
        padding: 1.5rem;
        margin: 1rem;
    }

    /* Pagination Mobile */
    .pc-pagination {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pc-pagination a,
    .page-info {
        width: 100%;
        text-align: center;
    }

    /* Leaderboard Mobile */
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .leaderboard-item .rank {
        margin-bottom: 0.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .btn-vote,
    .btn-primary,
    .btn-secondary,
    .photo-overlay {
        display: none !important;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}













/* ===== SINGLE SUBMISSION PAGE STYLES ===== */

/* Container */
.pc-single-submission {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.pc-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

.pc-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.pc-breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Layout */
.pc-submission-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .pc-submission-container {
        grid-template-columns: 1fr;
    }
}

/* Photo Section */
.pc-photo-wrapper {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.pc-main-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* Vote Section */
.pc-vote-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-vote-section .btn-vote {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pc-vote-section .btn-vote:hover {
    background: #ff3838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.pc-vote-section .vote-count {
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Photo Details */
.pc-photo-details {
    padding: 30px 0;
}

.pc-photo-details h1 {
    margin: 0 0 20px;
    font-size: 32px;
    color: #333;
}

.pc-photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pc-photo-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.pc-photo-meta .dashicons {
    color: #0073aa;
}

.pc-photo-caption {
    margin: 30px 0;
}

.pc-photo-caption h3 {
    margin-bottom: 15px;
    color: #333;
}

.pc-photo-caption p {
    line-height: 1.6;
    color: #666;
}

.pc-photo-credit {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
}

/* EXIF Data */
.pc-exif-data {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.pc-exif-data h3 {
    margin-bottom: 15px;
    color: #333;
}

.pc-exif-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-exif-data li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pc-exif-data li:last-child {
    border-bottom: none;
}

/* Sidebar */
.pc-submission-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Share Box */
.pc-share-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pc-share-box h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.pc-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-email {
    background: #666;
}

/* Copy Link */
.pc-copy-link {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pc-copy-link input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #f9f9f9;
}

.btn-copy {
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #005a87;
}

/* More Photos */
.pc-more-photos {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pc-more-photos h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.more-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.more-photo-item {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.more-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.more-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Navigation */
.pc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.pc-navigation a {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pc-navigation a:hover {
    background: #0073aa;
    color: white;
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-gallery {
    background: #0073aa !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pc-submission-container {
        grid-template-columns: 1fr;
    }
    
    .pc-submission-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .pc-photo-details h1 {
        font-size: 24px;
    }
    
    .pc-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .more-photos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pc-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .pc-navigation a {
        width: 100%;
        text-align: center;
    }
}

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

.pc-single-submission > * {
    animation: fadeIn 0.5s ease;
}

/* Lightbox untuk foto (optional) */
.pc-photo-wrapper {
    cursor: zoom-in;
}

.pc-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.pc-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.pc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}



