/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 30px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 50px;
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

.header-social {
    position: absolute;
    top: 20px;
    right: 20px;
}

.twitter-icon {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    transition: all 0.3s ease;
    object-fit: cover;
}

.twitter-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.main-title i {
    margin-right: 15px;
    color: #2c5aa0;
}

.subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 30px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.section-title i {
    margin-right: 12px;
    color: #2c5aa0;
}

/* Party Form Section */
.party-form-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.party-form {
    width: 100%;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: #2c5aa0;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2d3748;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="color"] {
    height: 50px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    padding: 4px;
}

.form-group input[type="file"] {
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
}

.file-preview {
    margin-top: 12px;
    text-align: left;
}

.file-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background: #2c5aa0;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.submit-btn:hover {
    background: #244689;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Parties Section */
.parties-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.parties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.party-count {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
}

.controls {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.sort-controls,
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label,
.filter-controls label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.sort-controls select,
.filter-controls select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    background: white;
    font-size: 0.9rem;
}

/* Parties Grid */
.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    width: 100%;
}

.no-parties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-parties i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #a0aec0;
}

.no-parties p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Party Card */
.party-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    border-left: 4px solid;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.party-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.party-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.party-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--party-color);
}

.party-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
    line-height: 1.3;
}

.party-slogan {
    font-style: italic;
    color: #718096;
    font-size: 0.95rem;
}

.party-details {
    margin-bottom: 25px;
}

.party-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.party-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #718096;
}

.meta-item i {
    color: var(--party-color);
    width: 14px;
}

.party-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.support-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.support-count i {
    color: #e53e3e;
}

.support-btn {
    background: var(--party-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.support-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.support-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close {
    color: #a0aec0;
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #4a5568;
}

.modal-content h3 {
    color: #38a169;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-content h3 i {
    margin-right: 10px;
}

.modal-content p {
    color: #4a5568;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .header-social {
        top: 15px;
        right: 15px;
    }
    
    .twitter-icon {
        width: 70px;
        height: 70px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .parties-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .parties-grid {
        grid-template-columns: 1fr;
    }
    
    .party-form-section,
    .parties-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .header-social {
        top: 10px;
        right: 10px;
    }
    
    .twitter-icon {
        width: 60px;
        height: 60px;
    }
    
    .party-header {
        flex-direction: column;
        text-align: center;
    }
    
    .party-footer {
        flex-direction: column;
        gap: 15px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
} 