/* Pro Giveaway - Public Styles - Redesigned Mobile-First */

/* Compact Giveaway Card */
.pro-giveaway-card {
    max-width: 100%;
    margin: 15px auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pro-giveaway-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Compact Banner - Fixed 16:9 Aspect Ratio */
.giveaway-banner {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 * 100) */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.giveaway-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

/* Compact Content */
.giveaway-content {
    padding: 15px;
}

.giveaway-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
    line-height: 1.2;
}

.giveaway-description {
    font-size: 13px;
    line-height: 1.5;
    color: #636e72;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slim Countdown Timer Strip */
.giveaway-countdown {
    background: linear-gradient(90deg, #4a00e0 0%, #8e2de2 100%);
    padding: 8px 10px;
    margin: 0 -15px 12px -15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
}

.countdown-item {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.countdown-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Info Pills */
.giveaway-quick-info {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.info-pill {
    background: #f0f3ff;
    color: #5f27cd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-pill i {
    font-size: 10px;
}

/* Compact Show More Button */
.giveaway-details-toggle {
    margin: 12px 0;
}

.show-more-btn {
    background: #f8f9fa;
    color: #636e72;
    border: 1px solid #dfe6e9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.show-more-btn:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
}

/* Compact Hidden Details */
.giveaway-details-hidden {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
    margin-top: 12px;
}

.giveaway-info-box {
    background: #fafbfc;
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    border-left: 3px solid #667eea;
}

.giveaway-info-box h3 {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.giveaway-info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 4px;
}

.prize-description,
.giveaway-rules {
    font-size: 12px;
    line-height: 1.4;
    color: #636e72;
}

.winners-count {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 5px 0;
}

/* Compact Participate Button */
.giveaway-participate {
    margin: 12px 0 5px;
}

.participate-btn {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.participate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Compact Status Messages */
.giveaway-status {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 12px;
    font-weight: 600;
}

.giveaway-status.upcoming {
    background: #ffeaa7;
    color: #d63031;
}

.giveaway-status.ended {
    background: #fab1a0;
    color: #d63031;
}

/* Entry Form */
.pro-giveaway-form-wrapper {
    max-width: 100%;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 5px;
}

.field-note {
    font-size: 11px;
    font-weight: 400;
    color: #95a5a6;
    font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Tasks Section */
.tasks-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.tasks-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.tasks-note {
    color: #636e72;
    margin-bottom: 12px;
    font-size: 12px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
    transition: all 0.2s ease;
}

.task-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.task-item.completed {
    background: #f0fff4;
    border-color: #28a745;
}

.task-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    font-size: 13px;
    gap: 8px;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.task-badge.mandatory {
    background: #dc3545;
    color: #fff;
}

.task-badge.optional {
    background: #28a745;
    color: #fff;
}

.task-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.task-link:hover {
    transform: scale(1.05);
    color: #fff;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.form-message.success {
    background: #00b894;
    color: #fff;
}

.form-message.error {
    background: #ff7675;
    color: #fff;
}

/* Results Table */
.pro-giveaway-results {
    max-width: 100%;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
}

.results-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 12px;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.results-table th,
.results-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.results-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.no-results {
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
    padding: 30px;
}

/* Hidden Social Task (already completed) */
.task-item.already-completed {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .giveaway-banner {
        padding-top: 56.25%;
    }
    
    .giveaway-content {
        padding: 12px;
    }
    
    .giveaway-title {
        font-size: 16px;
    }
    
    .giveaway-description {
        font-size: 12px;
    }
    
    .countdown-timer {
        gap: 2px;
    }
    
    .countdown-value {
        font-size: 14px;
    }
    
    .countdown-label {
        font-size: 9px;
        display: none;
    }
    
    .countdown-item::after {
        content: ':';
        margin-left: 2px;
        color: rgba(255, 255, 255, 0.5);
    }
    
    .countdown-item:last-child::after {
        content: '';
    }
    
    .info-pill {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .participate-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .pro-giveaway-form-wrapper {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .task-link {
        align-self: flex-end;
    }
    
    .results-table {
        font-size: 11px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 5px;
    }
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .giveaway-banner {
        padding-top: 56.25%;
    }
    
    .giveaway-content {
        padding: 18px;
    }
    
    .countdown-item {
        flex-direction: column;
    }
    
    .countdown-value {
        font-size: 18px;
    }
    
    .countdown-label {
        display: block;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .pro-giveaway-card {
        max-width: 600px;
    }
    
    .giveaway-banner {
        padding-top: 56.25%;
    }
    
    .countdown-item {
        flex-direction: column;
    }
    
    .countdown-value {
        font-size: 20px;
    }
    
    .countdown-label {
        display: block;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
